summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp')
-rw-r--r--tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
index a57098d2a..313cdf677 100644
--- a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
+++ b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
@@ -52,9 +52,10 @@ private:
void installFromCLI(const QString &repository)
{
QInstaller::init();
- PackageManagerCore *core = new PackageManagerCore(BinaryContent::MagicInstallerMarker, QList<OperationBlob> (),
- QString(), Protocol::DefaultAuthorizationKey, Protocol::Mode::Production,
- QHash<QString, QString>(), true);
+ QScopedPointer<PackageManagerCore> core(new PackageManagerCore(BinaryContent::MagicInstallerMarker,
+ QList<OperationBlob> (), QString(), Protocol::DefaultAuthorizationKey,
+ Protocol::Mode::Production, QHash<QString, QString>(), true));
+
core->setAllowedRunningProcesses(QStringList() << QCoreApplication::applicationFilePath());
core->disableWriteMaintenanceTool();
core->setAutoConfirmCommand();