Remove code guarded with wxUSE_GUI from wxLog unit test
This file is never compiled with wxUSE_GUI==1, so having these tests here is not really useful. It's unfortunately that the absence of warnings from wxLogStatus() is not checked currently, but it doesn't seem worth recompiling the entire test case or adding a new one just for this.
This commit is contained in:
@@ -422,10 +422,6 @@ static void v(int x, ...)
|
||||
wxVLogFatalError("vhello fatal %d", list);
|
||||
if (true)
|
||||
wxVLogSysError("vhello syserror %d", list);
|
||||
#if wxUSE_GUI
|
||||
if (true)
|
||||
wxVLogStatus("vhello status %d", list);
|
||||
#endif
|
||||
if (true)
|
||||
wxVLogDebug("vhello debug %d", list);
|
||||
|
||||
@@ -451,10 +447,6 @@ void macroCompilabilityTest()
|
||||
wxLogFatalError("hello fatal %d", 42);
|
||||
if (true)
|
||||
wxLogSysError("hello syserror %d", 42);
|
||||
#if wxUSE_GUI
|
||||
if (true)
|
||||
wxLogStatus("hello status %d", 42);
|
||||
#endif
|
||||
if (true)
|
||||
wxLogDebug("hello debug %d", 42);
|
||||
}
|
||||
|
Reference in New Issue
Block a user