Bug 920952 - Flush metro test harness output. r=bbondy, a=test-only
authorJim Mathies <jmathies@mozilla.com>
Mon, 16 Dec 2013 10:20:29 -0600
changeset 174368 a5d8e2a7f24559cce2e1fb72cdff1a3554569a31
parent 174367 e4fe9b91635eb2d0f15500728b8696afed1adbd7
child 174369 cc5c82e3f1093d466ebf498e190c9589a296deb6
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy, test-only
bugs920952
milestone28.0a2
Bug 920952 - Flush metro test harness output. r=bbondy, a=test-only
browser/metro/shell/testing/metrotestharness.cpp
--- a/browser/metro/shell/testing/metrotestharness.cpp
+++ b/browser/metro/shell/testing/metrotestharness.cpp
@@ -194,16 +194,17 @@ static bool SetupTestOutputPipe()
 static void ReadPipe()
 {
   DWORD numBytesRead;
   while (ReadFile(gTestOutputPipe, buffer, PIPE_BUFFER_SIZE,
                   &numBytesRead, nullptr) &&
          numBytesRead) {
     buffer[numBytesRead] = '\0';
     printf("%s", buffer);
+    fflush(stdout);
   }
 }
 
 static int Launch()
 {
   Log(L"Launching browser...");
 
   DWORD processID;