Flush the standard error stream before aborting.
[gnulib.git] / tests / test-count-one-bits.c
index a9c9476..5757bbd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Free Software Foundation
+ * Copyright (C) 2007-2008 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -31,6 +31,7 @@
         {                                                       \
           fprintf (stderr, "%s:%d: assertion \"%s\" failed\n",  \
                    __FILE__, __LINE__, #expr);                  \
+          fflush (stderr);                                      \
           abort ();                                             \
         }                                                       \
     }                                                           \