Flush output before aborting (#740) Co-authored-by: Andreas Schwab <schwab@suse.de>
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;
}