diff options
author | hjk <hjk@qt.io> | 2021-09-30 17:30:55 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-10-29 11:54:29 +0000 |
commit | 84f6b8891be0a9254939eb8066983ada85ec7f3d (patch) | |
tree | b7118c69fd87eea7aea442b341851f89c00a1f03 /tests | |
parent | 6d32550459ae8cdc67a6c6d397e77d335907635c (diff) |
Core: ExternalTool: Use FilePath also for executables
Change-Id: I6ec914b68ae41f9ee5eb28416c29d0431c5ab880
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/externaltool/tst_externaltooltest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/externaltool/tst_externaltooltest.cpp b/tests/auto/externaltool/tst_externaltooltest.cpp index d47c50465b..e7addf7a10 100644 --- a/tests/auto/externaltool/tst_externaltooltest.cpp +++ b/tests/auto/externaltool/tst_externaltooltest.cpp @@ -121,8 +121,8 @@ void ExternaltoolTest::testRead1() QCOMPARE(tool->displayCategory(), QString::fromLatin1("Linguist")); QCOMPARE(tool->order(), 1); QCOMPARE(tool->executables().size(), 2); - QCOMPARE(tool->executables().at(0), QString::fromLatin1("%{QT_INSTALL_BINS}/lupdate")); - QCOMPARE(tool->executables().at(1), QString::fromLatin1("lupdate")); + QCOMPARE(tool->executables().at(0), FilePath::fromString("%{QT_INSTALL_BINS}/lupdate")); + QCOMPARE(tool->executables().at(1), FilePath::fromString("lupdate")); QCOMPARE(tool->arguments(), QString::fromLatin1("%{CurrentProjectFilePath}")); QCOMPARE(tool->input(), QString()); QCOMPARE(tool->workingDirectory(), FilePath::fromString("%{CurrentProjectPath}")); @@ -143,7 +143,7 @@ void ExternaltoolTest::testRead2() QCOMPARE(tool->displayCategory(), QString::fromLatin1("Text")); QCOMPARE(tool->order(), -1); QCOMPARE(tool->executables().size(), 1); - QCOMPARE(tool->executables().at(0), QString::fromLatin1("sort")); + QCOMPARE(tool->executables().at(0), FilePath::fromString("sort")); QCOMPARE(tool->arguments(), QString()); QCOMPARE(tool->input(), QString::fromLatin1("%{CurrentSelection}")); QCOMPARE(tool->workingDirectory(), FilePath::fromString("%{CurrentPath}")); @@ -164,7 +164,7 @@ void ExternaltoolTest::testRead3() QCOMPARE(tool->displayCategory(), QString::fromLatin1("Text")); QCOMPARE(tool->order(), -1); QCOMPARE(tool->executables().size(), 1); - QCOMPARE(tool->executables().at(0), QString::fromLatin1("xterm")); + QCOMPARE(tool->executables().at(0), FilePath::fromString("xterm")); QVERIFY(tool->arguments().startsWith(QLatin1String("-geom %{"))); QCOMPARE(tool->input(), QString()); QCOMPARE(tool->workingDirectory(), FilePath::fromString("%{CurrentPath}")); |