Skip to content

Commit 98f15c1

Browse files
committed
revert error logger tests
1 parent e51f922 commit 98f15c1

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

test/testerrorlogger.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class TestErrorLogger : public TestFixture {
315315
}
316316

317317
#define testReportType(reportType, severity, errorId, expectedClassification, expectedGuideline) \
318-
testReportType_(__FILE__, __LINE__, reportType, severity, errorId, expectedClassification, expectedGuideline)
318+
testReportType_(__FILE__, __LINE__, reportType, severity, errorId, expectedClassification, expectedGuideline)
319319
void testReportType_(const char *file, int line, ReportType reportType, Severity severity, const std::string &errorId,
320320
const std::string &expectedClassification, const std::string &expectedGuideline) const
321321
{
@@ -508,7 +508,6 @@ class TestErrorLogger : public TestFixture {
508508
"17 Programming error"
509509
"17 Programming error"
510510
"0 "
511-
"17 Programming error"
512511
"0 ", msg_str);
513512

514513
ErrorMessage msg2;
@@ -551,11 +550,9 @@ class TestErrorLogger : public TestFixture {
551550
"1 0"
552551
"0 "
553552
"8 test.cpp"
554-
"1 0"
555553
"17 Programming error"
556554
"17 Programming error"
557555
"0 "
558-
"17 Programming error"
559556
"0 ";
560557
ErrorMessage msg;
561558
ASSERT_THROW_INTERNAL_EQUALS(msg.deserialize(str), INTERNAL, "Internal Error: Deserialization of error message failed - invalid CWE ID - not an integer");
@@ -566,13 +563,12 @@ class TestErrorLogger : public TestFixture {
566563
"5 error"
567564
"1 0"
568565
"7 invalid" // hash
566+
"1 0"
569567
"0 "
570568
"8 test.cpp"
571-
"1 0"
572569
"17 Programming error"
573570
"17 Programming error"
574571
"0 "
575-
"17 Programming error"
576572
"0 ";
577573
ErrorMessage msg;
578574
ASSERT_THROW_INTERNAL_EQUALS(msg.deserialize(str), INTERNAL, "Internal Error: Deserialization of error message failed - invalid hash - not an integer");
@@ -610,7 +606,6 @@ class TestErrorLogger : public TestFixture {
610606
"33 Illegal character in \"foo\\001bar\""
611607
"33 Illegal character in \"foo\\001bar\""
612608
"0 "
613-
"29 Illegal character in \"string\""
614609
"0 ", msg_str);
615610

616611
ErrorMessage msg2;
@@ -639,7 +634,6 @@ class TestErrorLogger : public TestFixture {
639634
"17 Programming error"
640635
"17 Programming error"
641636
"0 "
642-
"17 Programming error"
643637
"1 "
644638
"27 654\t33\t[]:;,()\t:/,;\tabcd:/,", msg_str);
645639

0 commit comments

Comments
 (0)