aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/corelib/language/moduleloader.cpp2
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp
index 8596c6199..72ac707e6 100644
--- a/src/lib/corelib/language/moduleloader.cpp
+++ b/src/lib/corelib/language/moduleloader.cpp
@@ -1425,7 +1425,7 @@ static void copyPropertiesFromExportItem(const Item *src, Item *dst)
if (it.value()->type() != Value::JSSourceValueType)
continue;
QBS_CHECK(!dst->hasOwnProperty(it.key()));
- dst->setProperty(it.key(), it.value());
+ dst->setProperty(it.key(), it.value()->clone());
}
}
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 8a3ac73de..1c8daf33c 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -3589,7 +3589,6 @@ void TestBlackbox::iconsetApp()
void TestBlackbox::importingProduct()
{
QDir::setCurrent(testDataDir + "/importing-product");
- QEXPECT_FAIL(0, "QBS-977", Abort);
QCOMPARE(runQbs(), 0);
}