aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-25 13:55:52 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-25 13:55:52 +0200
commite0c3d0043da2f670cfdb1abbb3223d5a594ad8db (patch)
treeffe10129a5dbee7dd1bdaf6b918d3c3795cda8b7 /tests/tests.h
parentAdded more Multi-Block Stream test files. (diff)
downloadxz-e0c3d0043da2f670cfdb1abbb3223d5a594ad8db.tar.xz
Use more parenthesis in succeed() macro in tests/tests.h.
Diffstat (limited to '')
-rw-r--r--tests/tests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 08a3991c..c7b43fd0 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -29,7 +29,7 @@
#define expect(test) ((test) ? 0 : (fprintf(stderr, "%s:%u: %s\n", \
__FILE__, __LINE__, #test), exit(1), 0))
-#define succeed(test) expect(!test)
+#define succeed(test) expect(!(test))
#define fail(test) expect(test)