Merge in additions to the scanner.
[awesomized/libmemcached] / libtest / test.h
index 88cc01157076de68fa000ce69b2cce0c1bbab239..b7a2f5eebf161549a01192e972212618c177cd25 100644 (file)
@@ -227,6 +227,16 @@ do \
   } \
 } 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 \
 { \