projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move to here from test-fprintf-posix.out.
[gnulib.git]
/
tests
/
test-mbsstr3.c
diff --git
a/tests/test-mbsstr3.c
b/tests/test-mbsstr3.c
index
5461196
..
9f65520
100644
(file)
--- a/
tests/test-mbsstr3.c
+++ b/
tests/test-mbsstr3.c
@@
-24,9
+24,19
@@
#include <string.h>
#include <locale.h>
#include <string.h>
#include <locale.h>
+#include <stdio.h>
#include <stdlib.h>
#include <stdlib.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 ()