aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/test_main.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2019-10-01 17:03:09 -0400
committerMarcoFalke <[email protected]>2019-10-01 17:00:49 -0400
commitfa06bb607da2d3e35723661156d873c8eac1fa50 (patch)
tree41175f07e636e59c8294e93bd29e83abc5a6923e /src/qt/test/test_main.cpp
parentdoc: Explain QT_QPA_PLATFORM for gui tests (diff)
downloaddiscoin-fa06bb607da2d3e35723661156d873c8eac1fa50.tar.xz
discoin-fa06bb607da2d3e35723661156d873c8eac1fa50.zip
qa: Do not force overwrite of QT_QPA_PLATFORM on windows for gui tests
Diffstat (limited to 'src/qt/test/test_main.cpp')
-rw-r--r--src/qt/test/test_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index 3e6b3a2a1..c39266a39 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -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