Fixed XML parser tests for Qt-less builds with expat

This commit is contained in:
Matthias Köfferlein 2018-09-08 00:44:19 +02:00
parent 7440acb3c0
commit adebdf307b
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ TEST (5)
error = ex.msg ();
}
#if defined (HAVE_QT)
#if !defined (HAVE_EXPAT)
EXPECT_EQ (error, "XML parser error: tag mismatch in line 2, column 33");
#else
EXPECT_EQ (error, "XML parser error: mismatched tag in line 2, column 28");
@ -219,7 +219,7 @@ TEST (6)
error = ex.msg ();
}
#if defined (HAVE_QT)
#if !defined (HAVE_EXPAT)
EXPECT_EQ (error, "XML parser error: Expected end of text at position 1 (..a) in line 2, column 27");
#else
// expat delivers cdata at beginning of closing tag