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 156899 38f29914881e9f2d5f9108c3a88f9ad4be8e5a02
parent 156898 134c64fb68342e6fa0fceb13f632fe11e1843791
child 156900 0630a2d8425253990e174bbfbf90e1a0e5fcfbce
push id373
push userryanvm@gmail.com
push dateTue, 17 Dec 2013 17:35:26 +0000
reviewersbbondy, test-only
bugs920952
milestone26.0
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;