projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unconditionally include <config.h> in unit tests.
[gnulib.git]
/
tests
/
test-vasnprintf-posix2.c
diff --git
a/tests/test-vasnprintf-posix2.c
b/tests/test-vasnprintf-posix2.c
index
eaa95b2
..
65f3c6c
100644
(file)
--- a/
tests/test-vasnprintf-posix2.c
+++ b/
tests/test-vasnprintf-posix2.c
@@
-17,17
+17,25
@@
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "vasnprintf.h"
#include <locale.h>
#include "vasnprintf.h"
#include <locale.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#define ASSERT(expr) if (!(expr)) abort ();
+#define ASSERT(expr) \
+ do \
+ { \
+ if (!(expr)) \
+ { \
+ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ abort (); \
+ } \
+ } \
+ while (0)
int
main (int argc, char *argv[])
int
main (int argc, char *argv[])