X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.h;h=b7a2f5eebf161549a01192e972212618c177cd25;hb=b95041363ea69ccfb9eacb6bba1852814c32b4ee;hp=88cc01157076de68fa000ce69b2cce0c1bbab239;hpb=3381db937d9af684deb762143bef0f1632a37dcd;p=awesomized%2Flibmemcached diff --git a/libtest/test.h b/libtest/test.h index 88cc0115..b7a2f5ee 100644 --- a/libtest/test.h +++ b/libtest/test.h @@ -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 \ { \