autoupdate
[gnulib.git] / tests / unistdio / test-ulc-vsprintf1.c
index 96b88ec..76b85b2 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of ulc_vsprintf() function.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 Free Software Foundation, Inc.
 
    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
@@ -28,6 +28,7 @@
 #include <string.h>
 
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -36,6 +37,7 @@
       if (!(expr))                                                          \
         {                                                                   \
           fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+          fflush (stderr);                                                  \
           abort ();                                                         \
         }                                                                   \
     }                                                                       \
@@ -67,6 +69,9 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsprintf ();
+
   return 0;
 }