From adebdf307bdf224d0dc7a06db96136c8504e4b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Sat, 8 Sep 2018 00:44:19 +0200 Subject: [PATCH] Fixed XML parser tests for Qt-less builds with expat --- src/tl/unit_tests/tlXMLParser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tl/unit_tests/tlXMLParser.cc b/src/tl/unit_tests/tlXMLParser.cc index 68360c42a..20b1b0f31 100644 --- a/src/tl/unit_tests/tlXMLParser.cc +++ b/src/tl/unit_tests/tlXMLParser.cc @@ -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