projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Added libmemcached_ping() to memcached utility library.
[m6w6/libmemcached]
/
tests
/
test.h
diff --git
a/tests/test.h
b/tests/test.h
index cd58a80d0e82b3383289fc34be2c1de6ebf56634..77aa5303bbe2bd580e7c1c1d8670463c8e565d00 100644
(file)
--- a/
tests/test.h
+++ b/
tests/test.h
@@
-152,9
+152,11
@@
const char *test_strerror(test_return_t code);
#define test_fail(A) \
do \
{ \
#define test_fail(A) \
do \
{ \
- fprintf(stderr, "\nFailed in %s:%d: %s\n", __FILE__, __LINE__, #A);\
- create_core(); \
- return TEST_FAILURE; \
+ if (1) { \
+ fprintf(stderr, "\nFailed in %s:%d: %s\n", __FILE__, __LINE__, #A);\
+ create_core(); \
+ return TEST_FAILURE; \
+ } \
} while (0)
#define test_true(A) \
} while (0)
#define test_true(A) \