diff options
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/parser/tst_parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/parser/tst_parser.cpp b/tests/auto/parser/tst_parser.cpp index 13eed5a..22b9059 100644 --- a/tests/auto/parser/tst_parser.cpp +++ b/tests/auto/parser/tst_parser.cpp @@ -67,6 +67,9 @@ void tst_Parser::error() const QStringList expectedErrors = QString::fromUtf8(errorFile.readAll()).split('\n', QString::SkipEmptyParts); + if (!expectedErrors.isEmpty()) + QTest::ignoreMessage(QtWarningMsg, "SCXML document has errors"); + QScopedPointer<QScxmlStateMachine> stateMachine(QScxmlStateMachine::fromFile(scxmlFileName)); QVERIFY(!stateMachine.isNull()); |