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