summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-03-30 11:01:20 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-03-30 11:01:20 +0200
commit30fcce7ad8abdc1920085fa86f39f855f69369fc (patch)
tree3098569b4b9a2b52013de13645f3f85835cbd13c /tools
parent2c6db0e9994967de4b279d743f37e3ea2842bd68 (diff)
Fix TEST_FALSE macro.
Diffstat (limited to 'tools')
-rw-r--r--tools/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test.h b/tools/test.h
index 4770a1e..74ace25 100644
--- a/tools/test.h
+++ b/tools/test.h
@@ -79,7 +79,7 @@
#define TEST_FALSE(x, fmt...) { \
TEST_BASE(fmt); \
- if(!x) { TEST_OK(#x" is false.") } \
+ if(!(x)) { TEST_OK(#x" is false.") } \
else { TEST_FAIL(#x" is not false.") } \
}