test added to show it works after fix
This commit is contained in:
parent
10ac0bcf54
commit
1cc16deba3
|
@ -19,3 +19,8 @@ def test_unmatched_suppression():
|
||||||
ret, stdout, stderr = cppcheck(['--inline-suppr', '--enable=information', '--error-exitcode=1', 'proj-inline-suppress/2.c'])
|
ret, stdout, stderr = cppcheck(['--inline-suppr', '--enable=information', '--error-exitcode=1', 'proj-inline-suppress/2.c'])
|
||||||
assert ret == 1
|
assert ret == 1
|
||||||
assert 'Unmatched suppression: some_warning_id' in stderr
|
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
|
||||||
|
|
Loading…
Reference in New Issue