diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-04-08 14:44:17 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-04-08 14:59:46 +0300 |
commit | bd4d4f71fa4649ff72947a7dbfc26e9f10f25b31 (patch) | |
tree | d0ab7627430b32addfe25f5ab5090d2be6507a7f | |
parent | c160a5e75257ce1d9ebbad2eb099dfb2531bd632 (diff) |
UnitTest: Allow test executable to run in copyoperation
Change-Id: I200c728190cf90e1c192aff5e1bbe9f4717e8e26
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
-rw-r--r-- | tests/auto/installer/copyoperationtest/tst_copyoperationtest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/installer/copyoperationtest/tst_copyoperationtest.cpp b/tests/auto/installer/copyoperationtest/tst_copyoperationtest.cpp index 5adbdd6a7..1f42bcad2 100644 --- a/tests/auto/installer/copyoperationtest/tst_copyoperationtest.cpp +++ b/tests/auto/installer/copyoperationtest/tst_copyoperationtest.cpp @@ -143,6 +143,7 @@ private slots: { QInstaller::init(); //This will eat debug output PackageManagerCore *core = new PackageManagerCore(BinaryContent::MagicInstallerMarker, QList<OperationBlob> ()); + core->setAllowedRunningProcesses(QStringList() << QCoreApplication::applicationFilePath()); QSet<Repository> repoList; Repository repo = Repository::fromUserInput(":///data/repository"); repoList.insert(repo); |