aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-06-04 15:15:10 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-06-04 13:36:30 +0000
commitcce76afcff377873e46611dc3f00bd3909e0ca21 (patch)
tree50f7cb78bb4b0d8b20416b2dd6a55ac805de43a3 /tests/auto
parent64a14c96aaa9eb8687281071c2e2b399c49ea27a (diff)
Tests: Fix compile on Win - Take 2
Amends 1ecfb2d941d3. Change-Id: Ibea1fe2f117234ca04caa35ec0b381814fa6d49c Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 0f60d6c7db..3b59a9cce8 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -90,7 +90,8 @@ static bool generateEnvironmentSettings(Utils::Environment &env,
// if Creator is launched within a session set up by setenv.cmd.
env.unset("ORIGINALPATH");
run.setEnvironment(env);
- const QString cmdPath = QString::fromLocal8Bit(qgetenv("COMSPEC"));
+ const Utils::FilePath cmdPath
+ = Utils::FilePath::fromString(QString::fromLocal8Bit(qgetenv("COMSPEC")));
// Windows SDK setup scripts require command line switches for environment expansion.
QString cmdArguments = " /E:ON /V:ON /c \"" + QDir::toNativeSeparators(saver.fileName()) + '"';
run.setCommand(Utils::CommandLine(cmdPath, cmdArguments));