mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
qa: Do not force overwrite of QT_QPA_PLATFORM on windows for gui tests
This commit is contained in:
parent
faccf5f9c8
commit
fa06bb607d
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
||||||
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
|
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
|
||||||
// interfere with any background GUIs and don't require extra resources.
|
// interfere with any background GUIs and don't require extra resources.
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
_putenv_s("QT_QPA_PLATFORM", "minimal");
|
if (getenv("QT_QPA_PLATFORM") == nullptr) _putenv_s("QT_QPA_PLATFORM", "minimal");
|
||||||
#else
|
#else
|
||||||
setenv("QT_QPA_PLATFORM", "minimal", /* overwrite */ 0);
|
setenv("QT_QPA_PLATFORM", "minimal", /* overwrite */ 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue