qa: Do not force overwrite of QT_QPA_PLATFORM on windows for gui tests

pull/764/head
MarcoFalke 5 years ago
parent faccf5f9c8
commit fa06bb607d
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -61,7 +61,7 @@ int main(int argc, char *argv[])
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
// interfere with any background GUIs and don't require extra resources.
#if defined(WIN32)
_putenv_s("QT_QPA_PLATFORM", "minimal");
if (getenv("QT_QPA_PLATFORM") == nullptr) _putenv_s("QT_QPA_PLATFORM", "minimal");
#else
setenv("QT_QPA_PLATFORM", "minimal", /* overwrite */ 0);
#endif

Loading…
Cancel
Save