diff --git a/tests/toplevel/toplevel.cpp b/tests/toplevel/toplevel.cpp index 5a2d83025f..7f4a09fca6 100644 --- a/tests/toplevel/toplevel.cpp +++ b/tests/toplevel/toplevel.cpp @@ -53,18 +53,14 @@ static void TopLevelWindowShowTest(wxTopLevelWindow* tlw) tlw->Show(true); countActivate.WaitEvent(); - // wxGTK needs many event loop iterations before the TLW becomes active and - // this doesn't happen in this test, so avoid checking for it. -#ifndef __WXGTK__ CHECK(tlw->IsActive()); -#endif CHECK(tlw->IsShown()); tlw->Hide(); CHECK(!tlw->IsShown()); -#ifndef __WXGTK__ + + countActivate.WaitEvent(); CHECK(!tlw->IsActive()); -#endif } TEST_CASE("wxTopLevel::Show", "[tlw][show]")