From 19ce586634391e4573d7828e4ebe7635282c25f6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 21 Jul 2026 17:57:29 +0200 Subject: [PATCH] Don't define a test case doing nothing when wxUSE_HELP==0 Just don't define this test case at all. See #26674. (cherry picked from commit 28dc69f8bd53f0a882a624eb74862b088f8921d8) --- tests/controls/windowtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/controls/windowtest.cpp b/tests/controls/windowtest.cpp index 393fc44299..03b337ea73 100644 --- a/tests/controls/windowtest.cpp +++ b/tests/controls/windowtest.cpp @@ -257,10 +257,10 @@ TEST_CASE_METHOD(WindowTestCase, "Window::Mouse", "[window]") CHECK(!m_window->HasCapture()); } +#if wxUSE_HELP TEST_CASE_METHOD(WindowTestCase, "Window::ContextHelpCaptureLost", "[window][help]") { -#if wxUSE_HELP wxScopedPtr winPtr(new ContextHelpCaptureLostTester(wxTheApp->GetTopWindow())); ContextHelpCaptureLostTester* const win = winPtr.get(); @@ -276,8 +276,8 @@ TEST_CASE_METHOD(WindowTestCase, "Window::ContextHelpCaptureLost", CHECK(state.WasCaptureLostSent()); CHECK(!state.WasFallbackUsed()); CHECK(!win->HasCapture()); -#endif // wxUSE_HELP } +#endif // wxUSE_HELP TEST_CASE_METHOD(WindowTestCase, "Window::Properties", "[window]") {