summaryrefslogtreecommitdiff
path: root/tests/test-fflush2.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-04-11 16:31:39 +0200
committerBruno Haible <bruno@clisp.org>2008-04-11 16:31:39 +0200
commite220635fc952c63b533873f2af39ec76aed4b4e3 (patch)
treee6b27452dddd7785c23e7361bcac20ddf6650e14 /tests/test-fflush2.c
parentcda636671de46bd0c60641ac60d6399662d7af2c (diff)
downloadgnulib-e220635fc952c63b533873f2af39ec76aed4b4e3.tar.gz
Flush the standard error stream before aborting.
Diffstat (limited to 'tests/test-fflush2.c')
-rw-r--r--tests/test-fflush2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-fflush2.c b/tests/test-fflush2.c
index 0b6d6c9b20..105a57551e 100644
--- a/tests/test-fflush2.c
+++ b/tests/test-fflush2.c
@@ -28,6 +28,7 @@
if (!(expr)) \
{ \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ fflush (stderr); \
abort (); \
} \
} \