Commit 77a0fb82b53087647a12334c6ddd590ea6215199

Andreas Schwab 2022-10-10T17:59:04

Flush output before aborting (#740) Co-authored-by: Andreas Schwab <schwab@suse.de>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/testsuite/libffi.bhaible/test-call.c b/testsuite/libffi.bhaible/test-call.c
index cf9219e..4887e00 100644
--- a/testsuite/libffi.bhaible/test-call.c
+++ b/testsuite/libffi.bhaible/test-call.c
@@ -50,6 +50,7 @@ int _fprintf(FILE *stream, const char *format, ...)
     case 3:
       vsprintf(&rbuf2[strlen(rbuf2)], format, args);
       printf("%s", rbuf2);
+      fflush (stdout);
       if (strcmp (rbuf1, rbuf2)) abort();
       break;
     }