diff options
author | Katja Marttila <katja.marttila@theqtcompany.com> | 2015-11-05 12:11:52 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2015-11-06 07:41:53 +0000 |
commit | 30c223190df90f6dd169d8af31a2e451b582f978 (patch) | |
tree | 9c8dac7c3933b467bb78d9d0cb16e30911fa6d07 /tests | |
parent | ba9d6002fc2acb546d4a61453e2f977c4965bb0e (diff) |
Fix scriptengine autotest
Was failing in Windows because NativeSeparators was not taken into account
when verifying the error message
Change-Id: I79c17ad91875918501d84b102d16f84bb2008038
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/installer/scriptengine/tst_scriptengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/installer/scriptengine/tst_scriptengine.cpp b/tests/auto/installer/scriptengine/tst_scriptengine.cpp index ccb785b70..830067af0 100644 --- a/tests/auto/installer/scriptengine/tst_scriptengine.cpp +++ b/tests/auto/installer/scriptengine/tst_scriptengine.cpp @@ -366,8 +366,8 @@ private slots: testComponent->loadComponentScript(":///data/component2.qs"); } catch (const Error &error) { const QString debugMessage( - "create Error-Exception: \"Exception while loading the component script \"" - ":///data/component2.qs\": ReferenceError: broken is not defined\""); + QString("create Error-Exception: \"Exception while loading the component script \"%1\": " + "ReferenceError: broken is not defined\"").arg(QDir::toNativeSeparators(":///data/component2.qs"))); QVERIFY2(debugMessage.contains(error.message()), "(ReferenceError: broken is not defined)"); } } |