diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/3rdparty/scion-tests/scxml-test-framework/test/w3c-ecma/test487.txml.scxml | 4 | ||||
-rw-r--r-- | tests/auto/scion/tst_scion.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/3rdparty/scion-tests/scxml-test-framework/test/w3c-ecma/test487.txml.scxml b/tests/3rdparty/scion-tests/scxml-test-framework/test/w3c-ecma/test487.txml.scxml index 30a50eb..39780e0 100644 --- a/tests/3rdparty/scion-tests/scxml-test-framework/test/w3c-ecma/test487.txml.scxml +++ b/tests/3rdparty/scion-tests/scxml-test-framework/test/w3c-ecma/test487.txml.scxml @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?><!-- test illegal assignment. error.execution should be raised. --><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" datamodel="ecmascript" version="1.0"> +<?xml version="1.0" encoding="UTF-8"?><!-- test illegal assignment. error.execution should be raised. --><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" datamodel="ecmascript" version="1.0" name="test487"> <datamodel> <data id="Var1" expr="return"/> </datamodel> @@ -14,4 +14,4 @@ <final id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final> <final id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final> -</scxml>
\ No newline at end of file +</scxml> diff --git a/tests/auto/scion/tst_scion.cpp b/tests/auto/scion/tst_scion.cpp index f6aa511..40da0a6 100644 --- a/tests/auto/scion/tst_scion.cpp +++ b/tests/auto/scion/tst_scion.cpp @@ -378,7 +378,8 @@ bool TestScion::runTest(QScxmlStateMachine *stateMachine, const QJsonObject &tes MySignalSpy stableStateSpy(stateMachine, SIGNAL(reachedStableState(bool))); MySignalSpy finishedSpy(stateMachine, SIGNAL(finished())); - if (!stateMachine->init()) { + if (!stateMachine->init() && stateMachine->name() != QStringLiteral("test487")) { + // test487 relies on a failing init to see if an error event gets posted. qWarning() << "init failed"; return false; } |