]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/testprec.h
set the PATH to contain ../lib/*_dll directories before running the tests
[wxWidgets.git] / tests / testprec.h
index ba2cf67c56b6ba726529c81617bc371e3c6cda20..901a7455750a170858ad007f423bc82a7e30dbae 100644 (file)
@@ -11,7 +11,7 @@
 class TestAssertFailure { };
 
 // macro to use for the functions which are supposed to fail an assertion
-#ifdef __WXDEBUG__
+#if wxDEBUG_LEVEL
     // some old cppunit versions don't define CPPUNIT_ASSERT_THROW so roll our
     // own
     #define WX_ASSERT_FAILS_WITH_ASSERT(cond) \
@@ -23,12 +23,14 @@ class TestAssertFailure { };
                 CPPUNIT_FAIL("expected assertion not generated"); \
         }
 #else
-    // there are no assertions in non-debug build so just check that it fails
+    // there are no assertions in this build so just check that it fails
     #define WX_ASSERT_FAILS_WITH_ASSERT(cond) CPPUNIT_ASSERT(!(cond))
 #endif
 
 // these functions can be used to hook into wxApp event processing and are
 // currently used by the events propagation test
+class WXDLLIMPEXP_FWD_BASE wxEvent;
+
 typedef int (*FilterEventFunc)(wxEvent&);
 typedef bool (*ProcessEventFunc)(wxEvent&);