From 810ea81009c594edb5f80110297e2562ca3c2b43 Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Tue, 21 Jun 2016 13:18:49 +0300 Subject: Fix settings test Change-Id: Ifbb9aca0719e670026c6bde910430d96621dd61e Reviewed-by: Iikka Eklund --- tests/auto/installer/settings/tst_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp index 8ff5329a1..07ff374a6 100644 --- a/tests/auto/installer/settings/tst_settings.cpp +++ b/tests/auto/installer/settings/tst_settings.cpp @@ -117,13 +117,13 @@ void tst_Settings::loadNotExistingConfig() if (!file.open(QIODevice::ReadOnly)) { errorString = file.errorString(); } - QTest::ignoreMessage(QtDebugMsg, QString::fromLatin1("create Error-Exception: \"Could not open" + QTest::ignoreMessage(QtDebugMsg, QString::fromLatin1("create Error-Exception: \"Cannot open" " settings file %1 for reading: %2\"") .arg(configFile).arg(errorString).toLatin1()); try { Settings::fromFileAndPrefix(configFile, ":/data"); } catch (const Error &error) { - QCOMPARE(error.message(), QString::fromLatin1("Could not open settings file " + QCOMPARE(error.message(), QString::fromLatin1("Cannot open settings file " "%1 for reading: %2").arg(configFile).arg(errorString)); return; } -- cgit v1.2.3