projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Fix atomsmasher test
[m6w6/libmemcached]
/
tests
/
test.h
diff --git
a/tests/test.h
b/tests/test.h
index cf19057250f347c755cb44c4acdd0b4d15a937b8..972788e5cb92f5c0fb37d03b17ae3f6fbb12386b 100644
(file)
--- a/
tests/test.h
+++ b/
tests/test.h
@@
-147,6
+147,14
@@
void create_core(void);
*/
const char *test_strerror(test_return_t code);
+#define test_fail(A) \
+do \
+{ \
+ fprintf(stderr, "\nFailed in %s:%d: %s\n", __FILE__, __LINE__, #A);\
+ create_core(); \
+ return TEST_FAILURE; \
+} while (0)
+
#define test_truth(A) \
do \
{ \