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 6adc3a3 commit 0be03c7Copy full SHA for 0be03c7
src/qt/test/test_main.cpp
@@ -59,7 +59,11 @@ int main(int argc, char *argv[])
59
// Prefer the "minimal" platform for the test instead of the normal default
60
// platform ("xcb", "windows", or "cocoa") so tests can't unintentially
61
// interfere with any background GUIs and don't require extra resources.
62
- setenv("QT_QPA_PLATFORM", "minimal", 0);
+ #if defined(WIN32)
63
+ _putenv_s("QT_QPA_PLATFORM", "minimal");
64
+ #else
65
+ setenv("QT_QPA_PLATFORM", "minimal", 0);
66
+ #endif
67
68
// Don't remove this, it's needed to access
69
// QApplication:: and QCoreApplication:: in the tests
0 commit comments