aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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)