From 37e436add7b49701d95ce14e5ee96404e166ada5 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 21 May 2013 15:36:31 +0200 Subject: 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 --- tests/auto/installer/scriptengine/tst_scriptengine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3