summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-11 13:04:05 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-16 06:26:38 -0400
commit543dfaab166c81f46ac4af76918ce32190aaab22 (patch)
treedff238322ecb324a62e3e4c5bb11fc33f4ab5e96
parenta0f683795a72f7b82962d24098b1dc7c2b04ab29 (diff)
downloadhaskell-543dfaab166c81f46ac4af76918ce32190aaab22.tar.gz
testsuite: Flush conc059's printf buffer
Otherwise it the order out the Haskell and C output will be system-dependent.
-rw-r--r--testsuite/tests/concurrent/should_run/conc059.stdout2
-rw-r--r--testsuite/tests/concurrent/should_run/conc059_c.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc059.stdout b/testsuite/tests/concurrent/should_run/conc059.stdout
index b72e7f491e..961a9d1f26 100644
--- a/testsuite/tests/concurrent/should_run/conc059.stdout
+++ b/testsuite/tests/concurrent/should_run/conc059.stdout
@@ -1,3 +1,3 @@
-500000
exiting...
+500000
exited.
diff --git a/testsuite/tests/concurrent/should_run/conc059_c.c b/testsuite/tests/concurrent/should_run/conc059_c.c
index 55510c12cf..19493aee3f 100644
--- a/testsuite/tests/concurrent/should_run/conc059_c.c
+++ b/testsuite/tests/concurrent/should_run/conc059_c.c
@@ -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