From bf59bc2edbb1f3f4d12bfbd8ed2663fbbb1900c0 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 5 Dec 2014 14:14:32 +0100 Subject: removed fatal flag from LoggableException, added constructor capable of using a PosType --- test/core/LoggerTest.cpp | 4 ++-- test/plugins/xml/XmlParserTest.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/core/LoggerTest.cpp b/test/core/LoggerTest.cpp index 0c333ce..abb76de 100644 --- a/test/core/LoggerTest.cpp +++ b/test/core/LoggerTest.cpp @@ -52,14 +52,14 @@ TEST(TerminalLogger, log) logger.fatalError("This is a test fatal error!", 10, 20); try { - throw LoggableException{"A fatal exception", true}; + throw LoggableException{"An exception"}; } catch (const LoggableException &ex) { logger.log(ex); } try { - throw LoggableException{"A fatal exception at position", true, Pos(10, 20)}; + throw LoggableException{"An exception at position", Pos(10, 20)}; } catch (const LoggableException &ex) { logger.log(ex); diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp index ecc9438..7dc8c24 100644 --- a/test/plugins/xml/XmlParserTest.cpp +++ b/test/plugins/xml/XmlParserTest.cpp @@ -37,7 +37,6 @@ TEST(XmlParser, mismatchedTagException) } catch (ParserException ex) { ASSERT_EQ(2, ex.line); - ASSERT_FALSE(ex.fatal); hadException = true; } ASSERT_TRUE(hadException); -- cgit v1.2.3