testsuite: Flush conc059's printf buffer
authorBen Gamari <ben@smart-cactus.org>
Tue, 11 Jun 2019 17:04:05 +0000 (13:04 -0400)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Sun, 16 Jun 2019 10:26:38 +0000 (06:26 -0400)
Otherwise it the order out the Haskell and C output will be
system-dependent.

testsuite/tests/concurrent/should_run/conc059.stdout
testsuite/tests/concurrent/should_run/conc059_c.c

index 55510c1..19493ae 100644 (file)
@@ -16,6 +16,7 @@ int main(int argc, char *argv[])
     usleep(100000);
 #endif
     printf("exiting...\n");
+    fflush(stdout);
     hs_exit();
     printf("exited.\n");
 #if mingw32_HOST_OS