1
0
Fork 0
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:
Lasse Collin 2008-01-25 13:55:52 +02:00
parent 1fd76d4881
commit e0c3d0043d

View file

@ -29,7 +29,7 @@
#define expect(test) ((test) ? 0 : (fprintf(stderr, "%s:%u: %s\n", \ #define expect(test) ((test) ? 0 : (fprintf(stderr, "%s:%u: %s\n", \
__FILE__, __LINE__, #test), exit(1), 0)) __FILE__, __LINE__, #test), exit(1), 0))
#define succeed(test) expect(!test) #define succeed(test) expect(!(test))
#define fail(test) expect(test) #define fail(test) expect(test)