@@ -82,7 +82,7 @@ def test_unmatched_suppression():
8282 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
8383 lines = stderr .splitlines ()
8484 assert lines == [
85- '{}2.c:2:0 : information: Unmatched suppression: some_warning_id [unmatchedSuppression]' .format (__proj_inline_suppres_path )
85+ '{}2.c:2:1 : information: Unmatched suppression: some_warning_id [unmatchedSuppression]' .format (__proj_inline_suppres_path )
8686 ]
8787 assert stdout == ''
8888 assert ret == 1 , stdout
@@ -100,7 +100,7 @@ def test_unmatched_suppression_path_with_extra_stuff():
100100 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
101101 lines = stderr .splitlines ()
102102 assert lines == [
103- '{}2.c:2:0 : information: Unmatched suppression: some_warning_id [unmatchedSuppression]' .format (__proj_inline_suppres_path )
103+ '{}2.c:2:1 : information: Unmatched suppression: some_warning_id [unmatchedSuppression]' .format (__proj_inline_suppres_path )
104104 ]
105105 assert stdout == ''
106106 assert ret == 1 , stdout
@@ -431,8 +431,8 @@ def __test_unused_function_unmatched(tmpdir, extra_args):
431431 lines = stderr .splitlines ()
432432 lines .sort ()
433433 assert lines == [
434- '{}unusedFunctionUnmatched.cpp:5:0 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path ),
435- '{}unusedFunctionUnmatched.cpp:5:0 : information: Unmatched suppression: unusedFunction [unmatchedSuppression]' .format (__proj_inline_suppres_path )
434+ '{}unusedFunctionUnmatched.cpp:5:1 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path ),
435+ '{}unusedFunctionUnmatched.cpp:5:1 : information: Unmatched suppression: unusedFunction [unmatchedSuppression]' .format (__proj_inline_suppres_path )
436436 ]
437437 assert stdout == ''
438438 assert ret == 0 , stdout
@@ -478,7 +478,7 @@ def test_unused_function_disabled_unmatched():
478478
479479 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
480480 assert stderr .splitlines () == [
481- '{}unusedFunctionUnmatched.cpp:5:0 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
481+ '{}unusedFunctionUnmatched.cpp:5:1 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
482482 ]
483483 assert stdout == ''
484484 assert ret == 0 , stdout
@@ -496,8 +496,8 @@ def test_unmatched_cfg():
496496
497497 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
498498 assert stderr .splitlines () == [
499- '{}cfg.c:5:0 : information: Unmatched suppression: id [unmatchedSuppression]' .format (__proj_inline_suppres_path ),
500- '{}cfg.c:9:0 : information: Unmatched suppression: id [unmatchedSuppression]' .format (__proj_inline_suppres_path ),
499+ '{}cfg.c:5:5 : information: Unmatched suppression: id [unmatchedSuppression]' .format (__proj_inline_suppres_path ),
500+ '{}cfg.c:9:5 : information: Unmatched suppression: id [unmatchedSuppression]' .format (__proj_inline_suppres_path ),
501501 ]
502502 assert stdout == ''
503503 assert ret == 0 , stdout
@@ -518,7 +518,7 @@ def test_unused_function_disabled_unmatched_j():
518518
519519 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
520520 assert stderr .splitlines () == [
521- '{}unusedFunctionUnmatched.cpp:5:0 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
521+ '{}unusedFunctionUnmatched.cpp:5:1 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
522522 ]
523523 assert stdout == ''
524524 assert ret == 0 , stdout
@@ -536,7 +536,7 @@ def test_misra_disabled_unmatched(): #14232
536536
537537 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
538538 assert stderr .splitlines () == [
539- '{}misraUnmatched.c:5:0 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
539+ '{}misraUnmatched.c:5:1 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
540540 ]
541541 assert stdout == ''
542542 assert ret == 0 , stdout
@@ -554,7 +554,7 @@ def test_premium_disabled_unmatched(): #13663
554554
555555 ret , stdout , stderr = cppcheck (args , cwd = __script_dir )
556556 assert stderr .splitlines () == [
557- '{}premiumUnmatched.cpp:5:0 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
557+ '{}premiumUnmatched.cpp:5:1 : information: Unmatched suppression: uninitvar [unmatchedSuppression]' .format (__proj_inline_suppres_path )
558558 ]
559559 assert stdout == ''
560560 assert ret == 0 , stdout
0 commit comments