diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-07-26 13:57:59 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-26 17:31:39 +0200 |
commit | 60bb004ea2db69a61eff0ff80963064211885393 (patch) | |
tree | 1e1e0f054c2757b62363dd3b5811ff75ff177450 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | 766367c3d02dc0b484d7cade66810cf4939f5402 (diff) |
Silence qqmlecmascript::propertyVarInheritance failures with clang release builds
There's no equivalent to #pragma GCC optimize ("O0") yet, so we cannot run
these test (sort of) reliably with clang.
Change-Id: Ie41d3ba7911cefacca00165941761b20579107a2
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 863805ae12..5df580b865 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -4938,8 +4938,11 @@ void tst_qqmlecmascript::propertyVarInheritance() QCoreApplication::processEvents(); // ensure that there are only weak handles to the underlying varProperties array remaining. gc(engine); + // an equivalent for pragma GCC optimize is still work-in-progress for CLang, so this test will fail. +#if !defined(Q_CC_CLANG) QVERIFY(icoCanaryHandle.isEmpty()); QVERIFY(ccoCanaryHandle.isEmpty()); +#endif delete object; // since there are no parent vmemo's to keep implicit references alive, and the only handles // to what remains are weak, all varProperties arrays must have been collected. @@ -4975,7 +4978,10 @@ void tst_qqmlecmascript::propertyVarInheritance2() QMetaObject::invokeMethod(object, "deassignCircular"); QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete); // process deleteLater() events from QV8QObjectWrapper. QCoreApplication::processEvents(); + // an equivalent for pragma GCC optimize is still work-in-progress for CLang, so this test will fail. +#if !defined(Q_CC_CLANG) QVERIFY(childObjectVarArrayValueHandle.isEmpty()); // should have been collected now. +#endif delete object; } |