diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2013-05-21 15:36:31 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2013-05-22 17:45:05 +0200 |
commit | 37e436add7b49701d95ce14e5ee96404e166ada5 (patch) | |
tree | 906436be69c4e8c0eb5b3ba7aa3d0e091936c854 /tests/auto/installer | |
parent | 5f4e5928bd1ff4609b72d1995d9adce74bb81ddf (diff) |
fix scriptengine autotest
- since we are using one scriptengine the component needs to be
registered on the packagemangercore to load the script
Change-Id: I931b75e8d68328c2317dd4a55ab9cc298229caba
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'tests/auto/installer')
-rw-r--r-- | tests/auto/installer/scriptengine/tst_scriptengine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/installer/scriptengine/tst_scriptengine.cpp b/tests/auto/installer/scriptengine/tst_scriptengine.cpp index af1dbf377..23fcd99b7 100644 --- a/tests/auto/installer/scriptengine/tst_scriptengine.cpp +++ b/tests/auto/installer/scriptengine/tst_scriptengine.cpp @@ -136,8 +136,10 @@ private slots: void loadBrokenComponentScript() { - PackageManagerCore core; - Component testComponent(&core); + Component testComponent(&m_core); + testComponent.setValue(scName, "broken.component"); + + m_core.appendRootComponent(&testComponent); const QString debugMesssage( "create Error-Exception: \"Exception while loading the component script: ':///data/component2.qs\n\n" |