projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fd76d4
)
Use more parenthesis in succeed() macro in tests/tests.h.
author
Lasse Collin
<lasse.collin@tukaani.org>
Fri, 25 Jan 2008 11:55:52 +0000
(13:55 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Fri, 25 Jan 2008 11:55:52 +0000
(13:55 +0200)
tests/tests.h
patch
|
blob
|
history
diff --git
a/tests/tests.h
b/tests/tests.h
index
08a3991
..
c7b43fd
100644
(file)
--- 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)