projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update from texinfo
[gnulib.git]
/
tests
/
test-stat-time.c
diff --git
a/tests/test-stat-time.c
b/tests/test-stat-time.c
index
bf3e8df
..
907ba4b
100644
(file)
--- a/
tests/test-stat-time.c
+++ b/
tests/test-stat-time.c
@@
-28,7
+28,16
@@
#include <sys/stat.h>
#include <unistd.h>
#include <sys/stat.h>
#include <unistd.h>
-#define ASSERT(condition) if (!(condition)) abort ()
+#define ASSERT(expr) \
+ do \
+ { \
+ if (!(expr)) \
+ { \
+ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ abort (); \
+ } \
+ } \
+ while (0)
enum { NFILES = 4 };
enum { NFILES = 4 };