summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/scriptengine/tst_scriptengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/installer/scriptengine/tst_scriptengine.cpp')
-rw-r--r--tests/auto/installer/scriptengine/tst_scriptengine.cpp6
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"