projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a warning in last patch.
[gnulib.git]
/
tests
/
test-freading.c
diff --git
a/tests/test-freading.c
b/tests/test-freading.c
index
b2f6fc7
..
1a38b9e
100644
(file)
--- a/
tests/test-freading.c
+++ b/
tests/test-freading.c
@@
-21,9
+21,19
@@
#include "freading.h"
#include "freading.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)
#define TESTFILE "t-freading.tmp"
#define TESTFILE "t-freading.tmp"