summaryrefslogtreecommitdiffstats
path: root/tests/auto/parser/tst_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/parser/tst_parser.cpp')
-rw-r--r--tests/auto/parser/tst_parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/parser/tst_parser.cpp b/tests/auto/parser/tst_parser.cpp
index 202e783..0e7436d 100644
--- a/tests/auto/parser/tst_parser.cpp
+++ b/tests/auto/parser/tst_parser.cpp
@@ -69,6 +69,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());