diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-09-29 15:38:08 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-09-29 15:40:23 (GMT) |
commit | c97b576a184a6ad57bf6bf043fa8b4b0be046730 (patch) | |
tree | c2629ad66750805ebe120e94b2ef097253212eca /tests/auto/qscriptvalue | |
parent | 629496d47b7e4071eca9692b2ca6cdb49f65300e (diff) | |
download | Qt-c97b576a184a6ad57bf6bf043fa8b4b0be046730.zip Qt-c97b576a184a6ad57bf6bf043fa8b4b0be046730.tar.gz Qt-c97b576a184a6ad57bf6bf043fa8b4b0be046730.tar.bz2 |
mark test as expected failure only when JIT is enabled
With the interpreter it works.
Diffstat (limited to 'tests/auto/qscriptvalue')
-rw-r--r-- | tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index 6792ebf..2148980 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -51,6 +51,10 @@ //TESTED_CLASS= //TESTED_FILES= +QT_BEGIN_NAMESPACE +extern bool qt_script_isJITEnabled(); +QT_END_NAMESPACE + class tst_QScriptValue : public QObject { Q_OBJECT @@ -2886,7 +2890,8 @@ void tst_QScriptValue::equals() { QScriptValue ret = compareFun.call(QScriptValue(), QScriptValueList() << qobj1 << qobj2); QVERIFY(ret.isBool()); - QEXPECT_FAIL("", "In JSC back-end, == on QObject wrappers doesn't work", Continue); + if (QT_PREPEND_NAMESPACE(qt_script_isJITEnabled())) + QEXPECT_FAIL("", "With JIT enabled, == on QObject wrappers doesn't work", Continue); QVERIFY(ret.toBool()); ret = compareFun.call(QScriptValue(), QScriptValueList() << qobj1 << qobj3); QVERIFY(ret.isBool()); @@ -2906,7 +2911,8 @@ void tst_QScriptValue::equals() { QScriptValue ret = compareFun.call(QScriptValue(), QScriptValueList() << var1 << var2); QVERIFY(ret.isBool()); - QEXPECT_FAIL("", "In JSC back-end, == on QVariant wrappers doesn't work", Continue); + if (QT_PREPEND_NAMESPACE(qt_script_isJITEnabled())) + QEXPECT_FAIL("", "With JIT enabled, == on QVariant wrappers doesn't work", Continue); QVERIFY(ret.toBool()); } } |