summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/createshortcutoperation
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/installer/createshortcutoperation')
-rw-r--r--tests/auto/installer/createshortcutoperation/data/repository/Updates.xml2
-rw-r--r--tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/installer/createshortcutoperation/data/repository/Updates.xml b/tests/auto/installer/createshortcutoperation/data/repository/Updates.xml
index 0826afae8..d1909d355 100644
--- a/tests/auto/installer/createshortcutoperation/data/repository/Updates.xml
+++ b/tests/auto/installer/createshortcutoperation/data/repository/Updates.xml
@@ -5,7 +5,7 @@
<PackageUpdate>
<Name>A</Name>
<DisplayName>A</DisplayName>
- <Description>Example component A</Description>
+ <Description>Example component for CreateShortcutOperation</Description>
<Version>1.0.2-1</Version>
<ReleaseDate>2015-01-01</ReleaseDate>
<Default>true</Default>
diff --git a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
index 313cdf677..a08567d64 100644
--- a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
+++ b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp
@@ -53,10 +53,9 @@ private:
{
QInstaller::init();
QScopedPointer<PackageManagerCore> core(new PackageManagerCore(BinaryContent::MagicInstallerMarker,
- QList<OperationBlob> (), QString(), Protocol::DefaultAuthorizationKey,
+ QList<OperationBlob> (), QString(), QString(), Protocol::DefaultAuthorizationKey,
Protocol::Mode::Production, QHash<QString, QString>(), true));
- core->setAllowedRunningProcesses(QStringList() << QCoreApplication::applicationFilePath());
core->disableWriteMaintenanceTool();
core->setAutoConfirmCommand();
QSet<Repository> repoList;
@@ -70,7 +69,7 @@ private:
core->installDefaultComponentsSilently();
QSettingsWrapper user(QLatin1String("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\"
- "CurrentVersion\\Explorer\\User Shell Folders"), QSettingsWrapper::NativeFormat);
+ "CurrentVersion\\Explorer\\User Shell Folders"), QSettings::NativeFormat);
//Replace %USERS% from "Programs"
const QString programs = replaceWindowsEnvironmentVariables(user.value(QLatin1String("Programs"), QString()).toString());
const QString startMenuDir = programs + QDir::separator() + "Qt Installer Framework Unit Test";