Use more parenthesis in succeed() macro in tests/tests.h.
This commit is contained in:
parent
1fd76d4881
commit
e0c3d0043d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue