Skip to content

Commit fa06bb6

Browse files
author
MarcoFalke
committed
qa: Do not force overwrite of QT_QPA_PLATFORM on windows for gui tests
1 parent faccf5f commit fa06bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/test/test_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
6161
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
6262
// interfere with any background GUIs and don't require extra resources.
6363
#if defined(WIN32)
64-
_putenv_s("QT_QPA_PLATFORM", "minimal");
64+
if (getenv("QT_QPA_PLATFORM") == nullptr) _putenv_s("QT_QPA_PLATFORM", "minimal");
6565
#else
6666
setenv("QT_QPA_PLATFORM", "minimal", /* overwrite */ 0);
6767
#endif

0 commit comments

Comments
 (0)