We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faccf5f commit fa06bb6Copy full SHA for fa06bb6
src/qt/test/test_main.cpp
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
61
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
62
// interfere with any background GUIs and don't require extra resources.
63
#if defined(WIN32)
64
- _putenv_s("QT_QPA_PLATFORM", "minimal");
+ if (getenv("QT_QPA_PLATFORM") == nullptr) _putenv_s("QT_QPA_PLATFORM", "minimal");
65
#else
66
setenv("QT_QPA_PLATFORM", "minimal", /* overwrite */ 0);
67
#endif
0 commit comments