diff --git a/test/cli/test-inline-suppress.py b/test/cli/test-inline-suppress.py index c94c493af..9f635d662 100644 --- a/test/cli/test-inline-suppress.py +++ b/test/cli/test-inline-suppress.py @@ -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