aboutsummaryrefslogtreecommitdiffstats
path: root/test.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-29 12:55:52 +0200
committerMattias Andrée <maandree@kth.se>2018-08-29 12:55:52 +0200
commit280258050d3c129614d60bca4d6df31288dc2573 (patch)
treea72ecb0feaf0ca0659383ff2eb3707a9e4340eb6 /test.h
parentAdd tests (diff)
downloadlibsimple-280258050d3c129614d60bca4d6df31288dc2573.tar.gz
libsimple-280258050d3c129614d60bca4d6df31288dc2573.tar.bz2
libsimple-280258050d3c129614d60bca4d6df31288dc2573.tar.xz
Add tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.h')
-rw-r--r--test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.h b/test.h
index dcbf3b8..60d20ca 100644
--- a/test.h
+++ b/test.h
@@ -34,14 +34,14 @@
stderr_ok = old_stderr_ok__;\
break;\
}\
- assert(EXPR);\
+ EXPR;\
assert_unreached();\
} while (0)
#define assert_exit_ptr(EXPR)\
do {\
void *volatile ptr__;\
- assert_exit((ptr__ = (EXPR)));\
+ assert_exit((void)(ptr__ = (EXPR)));\
} while (0)
#define assert_stderr(FMT, ...)\