test/cli/test-inline-suppress.py: better testing

This commit is contained in:
Daniel Marjamäki 2020-09-11 18:29:42 +02:00
parent b5cd823080
commit 61145cf878
1 changed files with 2 additions and 2 deletions

View File

@ -6,12 +6,12 @@ import re
from testutils import cppcheck from testutils import cppcheck
def test1(): def test1():
ret, stdout, stderr = cppcheck(['-Iproj-inline-suppress', '--inline-suppr', 'proj-inline-suppress']) ret, stdout, stderr = cppcheck(['--inline-suppr', 'proj-inline-suppress'])
assert ret == 0 assert ret == 0
assert stderr == '' assert stderr == ''
def test2(): def test2():
ret, stdout, stderr = cppcheck(['-Iproj-inline-suppress', 'proj-inline-suppress']) ret, stdout, stderr = cppcheck(['proj-inline-suppress'])
assert ret == 0 assert ret == 0
assert len(stderr) > 0 assert len(stderr) > 0