Skip to content

Commit bab310b

Browse files
committed
revert error logger tests
1 parent 754e509 commit bab310b

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
{
@@ -506,7 +506,6 @@ class TestErrorLogger : public TestFixture {
506506
"17 Programming error"
507507
"17 Programming error"
508508
"0 "
509-
"17 Programming error"
510509
"0 ", msg_str);
511510

512511
ErrorMessage msg2;
@@ -549,11 +548,9 @@ class TestErrorLogger : public TestFixture {
549548
"1 0"
550549
"0 "
551550
"8 test.cpp"
552-
"1 0"
553551
"17 Programming error"
554552
"17 Programming error"
555553
"0 "
556-
"17 Programming error"
557554
"0 ";
558555
ErrorMessage msg;
559556
ASSERT_THROW_INTERNAL_EQUALS(msg.deserialize(str), INTERNAL, "Internal Error: Deserialization of error message failed - invalid CWE ID - not an integer");
@@ -564,13 +561,12 @@ class TestErrorLogger : public TestFixture {
564561
"5 error"
565562
"1 0"
566563
"7 invalid" // hash
564+
"1 0"
567565
"0 "
568566
"8 test.cpp"
569-
"1 0"
570567
"17 Programming error"
571568
"17 Programming error"
572569
"0 "
573-
"17 Programming error"
574570
"0 ";
575571
ErrorMessage msg;
576572
ASSERT_THROW_INTERNAL_EQUALS(msg.deserialize(str), INTERNAL, "Internal Error: Deserialization of error message failed - invalid hash - not an integer");
@@ -608,7 +604,6 @@ class TestErrorLogger : public TestFixture {
608604
"33 Illegal character in \"foo\\001bar\""
609605
"33 Illegal character in \"foo\\001bar\""
610606
"0 "
611-
"29 Illegal character in \"string\""
612607
"0 ", msg_str);
613608

614609
ErrorMessage msg2;
@@ -637,7 +632,6 @@ class TestErrorLogger : public TestFixture {
637632
"17 Programming error"
638633
"17 Programming error"
639634
"0 "
640-
"17 Programming error"
641635
"1 "
642636
"27 654\t33\t[]:;,()\t:/,;\tabcd:/,", msg_str);
643637

0 commit comments

Comments
 (0)