@@ -528,7 +528,7 @@ class TestSuppressions : public TestFixture {
528528 " b++;\n "
529529 " }\n " ,
530530 " " ));
531- ASSERT_EQUALS (" [test.cpp:1:0 ]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n " , errout_str ());
531+ ASSERT_EQUALS (" [test.cpp:1:1 ]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n " , errout_str ());
532532
533533 // suppress uninitvar for this file only
534534 ASSERT_EQUALS (0 , (this ->*check)(" void f() {\n "
@@ -706,7 +706,7 @@ class TestSuppressions : public TestFixture {
706706 " b++;\n "
707707 " }\n " ,
708708 " " ));
709- ASSERT_EQUALS (" [test.cpp:4:0 ]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n " , errout_str ());
709+ ASSERT_EQUALS (" [test.cpp:4:5 ]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n " , errout_str ());
710710
711711 // suppress block inline checks
712712 ASSERT_EQUALS (0 , (this ->*check)(" void f() {\n "
@@ -889,7 +889,7 @@ class TestSuppressions : public TestFixture {
889889 " // cppcheck-suppress-end [uninitvar, syntaxError]\n "
890890 " }\n " ,
891891 " " ));
892- ASSERT_EQUALS (" [test.cpp:2:0 ]: (information) Unmatched suppression: syntaxError [unmatchedSuppression]\n " , errout_str ());
892+ ASSERT_EQUALS (" [test.cpp:2:5 ]: (information) Unmatched suppression: syntaxError [unmatchedSuppression]\n " , errout_str ());
893893
894894 ASSERT_EQUALS (1 , (this ->*check)(" // cppcheck-suppress-begin [uninitvar, syntaxError]\n "
895895 " void f() {\n "
@@ -904,7 +904,7 @@ class TestSuppressions : public TestFixture {
904904 " }\n "
905905 " // cppcheck-suppress-end [uninitvar, syntaxError]\n " ,
906906 " " ));
907- ASSERT_EQUALS (" [test.cpp:1:0 ]: (information) Unmatched suppression: syntaxError [unmatchedSuppression]\n " , errout_str ());
907+ ASSERT_EQUALS (" [test.cpp:1:1 ]: (information) Unmatched suppression: syntaxError [unmatchedSuppression]\n " , errout_str ());
908908
909909 ASSERT_EQUALS (1 , (this ->*check)(" // cppcheck-suppress-begin [uninitvar, syntaxError]\n "
910910 " void f() {\n "
@@ -919,7 +919,7 @@ class TestSuppressions : public TestFixture {
919919 " }\n "
920920 " // cppcheck-suppress-end [uninitvar, syntaxError]" ,
921921 " " ));
922- ASSERT_EQUALS (" [test.cpp:1:0 ]: (information) Unmatched suppression: syntaxError [unmatchedSuppression]\n " , errout_str ());
922+ ASSERT_EQUALS (" [test.cpp:1:1 ]: (information) Unmatched suppression: syntaxError [unmatchedSuppression]\n " , errout_str ());
923923
924924 // test of multiple suppression types
925925 ASSERT_EQUALS (0 , (this ->*check)(" // cppcheck-suppress-file uninitvar\n "
@@ -969,7 +969,7 @@ class TestSuppressions : public TestFixture {
969969 " a++;\n "
970970 " }\n " ,
971971 " " ));
972- ASSERT_EQUALS (" [test.cpp:4:0 ]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n " , errout_str ());
972+ ASSERT_EQUALS (" [test.cpp:4:5 ]: (information) Unmatched suppression: uninitvar [unmatchedSuppression]\n " , errout_str ());
973973
974974 // #5746 - exitcode
975975 ASSERT_EQUALS (1U ,
@@ -998,7 +998,7 @@ class TestSuppressions : public TestFixture {
998998 " #define DIV(A,B) A/B\n "
999999 " a = DIV(10,1);\n " ,
10001000 " " );
1001- ASSERT_EQUALS (" [test.cpp:2:0 ]: (information) Unmatched suppression: abc [unmatchedSuppression]\n " , errout_str ());
1001+ ASSERT_EQUALS (" [test.cpp:2:1 ]: (information) Unmatched suppression: abc [unmatchedSuppression]\n " , errout_str ());
10021002 }
10031003
10041004 void suppressionsSettingsFiles () {
0 commit comments