projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
[gnulib.git]
/
tests
/
test-memchr2.c
diff --git
a/tests/test-memchr2.c
b/tests/test-memchr2.c
index
ef0a713
..
a992fb5
100644
(file)
--- a/
tests/test-memchr2.c
+++ b/
tests/test-memchr2.c
@@
-19,23
+19,11
@@
#include "memchr2.h"
#include "memchr2.h"
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zerosize-ptr.h"
#include <stdlib.h>
#include <string.h>
#include "zerosize-ptr.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
/* Calculating void * + int is not portable, so this wrapper converts
to char * to make the tests easier to write. */
/* Calculating void * + int is not portable, so this wrapper converts
to char * to make the tests easier to write. */