mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Use more parenthesis in succeed() macro in tests/tests.h.
This commit is contained in:
parent
1fd76d4881
commit
e0c3d0043d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue