projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in additions to the scanner.
[awesomized/libmemcached]
/
libtest
/
test.h
diff --git
a/libtest/test.h
b/libtest/test.h
index 88cc01157076de68fa000ce69b2cce0c1bbab239..b7a2f5eebf161549a01192e972212618c177cd25 100644
(file)
--- a/
libtest/test.h
+++ b/
libtest/test.h
@@
-227,6
+227,16
@@
do \
} \
} while (0)
} \
} while (0)
+#define test_false_with(A,B) \
+do \
+{ \
+ if ((A)) { \
+ fprintf(stderr, "\nAssertion failed at %s:%d: %s with %s\n", __FILE__, __LINE__, #A, (B));\
+ create_core(); \
+ return TEST_FAILURE; \
+ } \
+} while (0)
+
#define test_strcmp(A,B) \
do \
{ \
#define test_strcmp(A,B) \
do \
{ \