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-c-strcasestr.c
diff --git
a/tests/test-c-strcasestr.c
b/tests/test-c-strcasestr.c
index
726c18b
..
427653b
100644
(file)
--- a/
tests/test-c-strcasestr.c
+++ b/
tests/test-c-strcasestr.c
@@
-23,9
+23,20
@@
#include "c-strcasestr.h"
#include "c-strcasestr.h"
+#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
-
-#define ASSERT(expr) if (!(expr)) abort ();
+#include <string.h>
+
+#define ASSERT(expr) \
+ do \
+ { \
+ if (!(expr)) \
+ { \
+ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ abort (); \
+ } \
+ } \
+ while (0)
int
main ()
int
main ()