]> rtime.felk.cvut.cz Git - wvtest.git/blobdiff - cpp/wvtest.h
Fix standalone compilation of wvtest/cpp.
[wvtest.git] / cpp / wvtest.h
index 69015d31b40d81329323e9c0cc499db32fc79afe..3fc64f3196a21370cf588b77e37e0aa0f3840869 100644 (file)
 #ifndef __WVTEST_H
 #define __WVTEST_H
 
+#ifndef WVTEST_CONFIGURED
+# error "Missing settings: HAVE_VALGRIND_MEMCHECK_H HAVE_WVCRASH WVTEST_CONFIGURED"
+#endif
+
 #include <time.h>
 
 class WvTest
@@ -58,6 +62,8 @@ public:
     WvTest::start_check(__FILE__, __LINE__, "NOT(" #cond ")", !(cond))
 #define WVFAILEQ(a, b) \
     WvTest::start_check_eq(__FILE__, __LINE__, (a), (b), false)
+#define WVPASSNE(a, b) WVFAILEQ(a, b)
+#define WVFAILNE(a, b) WVPASSEQ(a, b)
 
 #define WVTEST_MAIN3(descr, ff, ll, slowness) \
     static void _wvtest_main_##ll(); \