test added to show it works after fix

This commit is contained in:
Jens Yllman 2020-07-30 22:22:54 +02:00
parent 10ac0bcf54
commit 1cc16deba3
1 changed files with 5 additions and 0 deletions

View File

@ -19,3 +19,8 @@ def test_unmatched_suppression():
ret, stdout, stderr = cppcheck(['--inline-suppr', '--enable=information', '--error-exitcode=1', 'proj-inline-suppress/2.c'])
assert ret == 1
assert 'Unmatched suppression: some_warning_id' in stderr
def test_unmatched_suppression_2():
ret, stdout, stderr = cppcheck(['--inline-suppr', '--enable=information', '--error-exitcode=1', './proj-inline-suppress/2.c'])
assert ret == 1
assert 'Unmatched suppression: some_warning_id' in stderr