]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
wxUSE_LOG fixes.
[wxWidgets.git] / tests / test.cpp
index 040ed7eeda3ba785b7216aed86539c914f0c61b3..1990698b1d0ed00b0453403e64730667d17cc0ea 100644 (file)
@@ -129,11 +129,18 @@ int TestApp::OnRun()
             runner.addTest(test.release());
     }
 
+#if wxUSE_LOG
     // Switch off logging unless --verbose
     wxLog::EnableLogging(wxLog::GetVerbose());
-
-    return m_list || runner.run("", false, true, !wxLog::GetVerbose()) ?
-        EXIT_SUCCESS : EXIT_FAILURE;
+#endif // wxUSE_LOG
+
+    return m_list || runner.run("", false, true, 
+#if wxUSE_LOG
+        !wxLog::GetVerbose()
+#else
+        true
+#endif // wxUSE_LOG
+    ) ? EXIT_SUCCESS : EXIT_FAILURE;
 }
 
 // List the tests