test/cli/test-inline-suppress.py: better testing
This commit is contained in:
parent
b5cd823080
commit
61145cf878
|
@ -6,12 +6,12 @@ import re
|
|||
from testutils import cppcheck
|
||||
|
||||
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 stderr == ''
|
||||
|
||||
def test2():
|
||||
ret, stdout, stderr = cppcheck(['-Iproj-inline-suppress', 'proj-inline-suppress'])
|
||||
ret, stdout, stderr = cppcheck(['proj-inline-suppress'])
|
||||
assert ret == 0
|
||||
assert len(stderr) > 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue