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