Flush the standard error stream before aborting.
[gnulib.git] / tests / test-vprintf-posix.c
index d30a95f..441551f 100644 (file)
@@ -33,6 +33,7 @@
       if (!(expr))                                                          \
         {                                                                   \
           fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+          fflush (stderr);                                                  \
           abort ();                                                         \
         }                                                                   \
     }                                                                       \