@@ -3371,11 +3371,10 @@ def test_suppress_unmatched_wildcard(tmp_path): # #13660
33713371 exitcode , stdout , stderr = cppcheck (args , cwd = tmp_path )
33723372 assert exitcode == 0 , stdout
33733373 assert stdout .splitlines () == []
3374- # TODO: invalid locations - see #13659
33753374 assert stderr .splitlines () == [
3376- 'test*.c:-1 :0: information: Unmatched suppression: id [unmatchedSuppression]' ,
3377- 'test*.c:-1 :0: information: Unmatched suppression: id2 [unmatchedSuppression]' ,
3378- 'tes?.c:-1 :0: information: Unmatched suppression: id2 [unmatchedSuppression]'
3375+ 'test*.c:0 :0: information: Unmatched suppression: id [unmatchedSuppression]' ,
3376+ 'test*.c:0 :0: information: Unmatched suppression: id2 [unmatchedSuppression]' ,
3377+ 'tes?.c:0 :0: information: Unmatched suppression: id2 [unmatchedSuppression]'
33793378 ]
33803379
33813380
@@ -3400,12 +3399,11 @@ def test_suppress_unmatched_wildcard_unchecked(tmp_path):
34003399 exitcode , stdout , stderr = cppcheck (args , cwd = tmp_path )
34013400 assert exitcode == 0 , stdout
34023401 assert stdout .splitlines () == []
3403- # TODO: invalid locations - see #13659
34043402 assert stderr .splitlines () == [
3405- 'test*.c:-1 :0: information: Unmatched suppression: id [unmatchedSuppression]' ,
3406- 'tes?.c:-1 :0: information: Unmatched suppression: id [unmatchedSuppression]' ,
3407- '*:-1 :0: information: Unmatched suppression: id2 [unmatchedSuppression]' ,
3408- 'test*.c:-1 :0: information: Unmatched suppression: * [unmatchedSuppression]'
3403+ 'test*.c:0 :0: information: Unmatched suppression: id [unmatchedSuppression]' ,
3404+ 'tes?.c:0 :0: information: Unmatched suppression: id [unmatchedSuppression]' ,
3405+ '*:0 :0: information: Unmatched suppression: id2 [unmatchedSuppression]' ,
3406+ 'test*.c:0 :0: information: Unmatched suppression: * [unmatchedSuppression]'
34093407 ]
34103408
34113409
@@ -3859,12 +3857,12 @@ def test_unmatched_file(tmp_path): # #14248 / #14249
38593857 ret , stdout , stderr = cppcheck (args )
38603858 assert stdout == ''
38613859 assert stderr .splitlines () == [
3862- f'{ lib_file } :-1 :0: information: Unmatched suppression: error [unmatchedSuppression]' ,
3863- f'{ lib_file } :-1 :0: information: Unmatched suppression: error2 [unmatchedSuppression]' ,
3864- f'{ lib_file } :-1 :0: information: Unmatched suppression: error3 [unmatchedSuppression]' ,
3865- f'{ lib_file } :-1 :0: information: Unmatched suppression: error4 [unmatchedSuppression]' ,
3866- f'{ lib_file } :-1 :0: information: Unmatched suppression: error5 [unmatchedSuppression]' ,
3867- f'{ lib_file } :-1 :0: information: Unmatched suppression: error6 [unmatchedSuppression]'
3860+ f'{ lib_file } :0 :0: information: Unmatched suppression: error [unmatchedSuppression]' ,
3861+ f'{ lib_file } :0 :0: information: Unmatched suppression: error2 [unmatchedSuppression]' ,
3862+ f'{ lib_file } :0 :0: information: Unmatched suppression: error3 [unmatchedSuppression]' ,
3863+ f'{ lib_file } :0 :0: information: Unmatched suppression: error4 [unmatchedSuppression]' ,
3864+ f'{ lib_file } :0 :0: information: Unmatched suppression: error5 [unmatchedSuppression]' ,
3865+ f'{ lib_file } :0 :0: information: Unmatched suppression: error6 [unmatchedSuppression]'
38683866 ]
38693867 assert ret == 0 , stdout
38703868
0 commit comments