tst_Q*Application::runHelperTest(): Run test without activating app on macOS

As that will steal focus from tst_QApplication, which is needed for
subsequent tests.

Pick-to: 6.8
Change-Id: I5720c4a2bb45f98894616e01da10b9c40a2b6735
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 8de8800670d2881c6dfe957d6a1c5d925417b85c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2025-01-13 14:07:38 +01:00 committed by Qt Cherry-pick Bot
parent 06ab82d945
commit 33b0661cc6

View File

@ -131,6 +131,9 @@ int main(int argc, char **argv)
// "+[IMKClient subclass]: chose IMKClient_Legacy"
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::MacOSSequoia)
qputenv("CFLOG_FORCE_DISABLE_STDERR", "1");
// Don't steal app focus from main test
qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "1");
# endif
std::string_view subtest(argv[1]);