Skip to content

Commit f89417d

Browse files
committed
update inline suppression test
1 parent 9ec9ec0 commit f89417d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/cli/inline-suppress_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,16 @@ def test_unmatched_cfg():
461461
'--template=simple',
462462
'--enable=warning,information',
463463
'--inline-suppr',
464+
'-DVER_CHECK(...)=0',
465+
'--force',
464466
'proj-inline-suppress/cfg.c'
465467
]
466468

467469
ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
470+
print(stderr)
468471
assert stderr.splitlines() == [
469472
'{}cfg.c:10:0: information: Unmatched suppression: id [unmatchedSuppression]'.format(__proj_inline_suppres_path),
470473
'{}cfg.c:14:0: information: Unmatched suppression: id [unmatchedSuppression]'.format(__proj_inline_suppres_path),
471474
]
472475
assert stdout == ''
473-
assert ret == 0, stdout
476+
assert ret == 0, stdout

0 commit comments

Comments
 (0)