diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-05 14:14:32 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-05 14:14:32 +0100 |
commit | bf59bc2edbb1f3f4d12bfbd8ed2663fbbb1900c0 (patch) | |
tree | 30d1fcfaf43045904883f1f068be6347487eedb4 /test | |
parent | ddbea4164e126739f39658627c04e7e23b71e090 (diff) |
removed fatal flag from LoggableException, added constructor capable of using a PosType
Diffstat (limited to 'test')
-rw-r--r-- | test/core/LoggerTest.cpp | 4 | ||||
-rw-r--r-- | test/plugins/xml/XmlParserTest.cpp | 1 |
2 files changed, 2 insertions, 3 deletions
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); |