projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in additional fix for manpages.
[m6w6/libmemcached]
/
libtest
/
test.h
diff --git
a/libtest/test.h
b/libtest/test.h
index 88cc01157076de68fa000ce69b2cce0c1bbab239..58d24373ea8d17e3cf40c5b34ad366f69883fff1 100644
(file)
--- a/
libtest/test.h
+++ b/
libtest/test.h
@@
-227,12
+227,22
@@
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 \
{ \
if (strcmp((A), (B))) \
{ \
#define test_strcmp(A,B) \
do \
{ \
if (strcmp((A), (B))) \
{ \
- fprintf(stderr, "\n%s:%d:
%s -> %s
\n", __FILE__, __LINE__, (A), (B)); \
+ fprintf(stderr, "\n%s:%d:
`%s` -> `%s`
\n", __FILE__, __LINE__, (A), (B)); \
create_core(); \
return TEST_FAILURE; \
} \
create_core(); \
return TEST_FAILURE; \
} \