projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
This fixes bug 776354.
[awesomized/libmemcached]
/
libtest
/
test.h
diff --git
a/libtest/test.h
b/libtest/test.h
index 604e661c218f37a3c58db786a77c03d24ea57e32..0493f3106b1b4b657aefb312d6195fb49a141af5 100644
(file)
--- a/
libtest/test.h
+++ b/
libtest/test.h
@@
-228,6
+228,17
@@
do \
} \
} while (0)
} \
} while (0)
+#define test_compare_got(A,B,C) \
+do \
+{ \
+ if ((A) != (B)) \
+ { \
+ fprintf(stderr, "\n%s:%d: Expected %s, got %s\n", __FILE__, __LINE__, #A, (C)); \
+ create_core(); \
+ return TEST_FAILURE; \
+ } \
+} while (0)
+
#define test_false(A) \
do \
{ \
#define test_false(A) \
do \
{ \