projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
[gnulib.git]
/
tests
/
test-iconv.c
diff --git
a/tests/test-iconv.c
b/tests/test-iconv.c
index
00157da
..
0a0c2aa
100644
(file)
--- a/
tests/test-iconv.c
+++ b/
tests/test-iconv.c
@@
-17,19
+17,27
@@
/* 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>
#if HAVE_ICONV
# include <iconv.h>
#endif
#include <errno.h>
#if HAVE_ICONV
# include <iconv.h>
#endif
#include <errno.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
main ()