Skip to content

Commit d986019

Browse files
committed
df
1 parent 2de2dc0 commit d986019

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

test/cli/inline-suppress_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ def test_unmatched_cfg():
466466

467467
ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
468468
assert stderr.splitlines() == [
469-
'{}cfg.c:10:0: information: Unmatched suppression: id [unmatchedSuppression]'.format(__proj_inline_suppres_path),
470-
'{}cfg.c:14:0: information: Unmatched suppression: id [unmatchedSuppression]'.format(__proj_inline_suppres_path),
469+
'{}cfg.c:5:0: information: Unmatched suppression: id [unmatchedSuppression]'.format(__proj_inline_suppres_path),
470+
'{}cfg.c:9:0: information: Unmatched suppression: id [unmatchedSuppression]'.format(__proj_inline_suppres_path),
471471
]
472472
assert stdout == ''
473473
assert ret == 0, stdout

test/cli/proj-inline-suppress/cfg.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
void f()
22
{
3-
#if VER_CHECK(3, 1, 6)
4-
// cppcheck-suppress id
5-
(void)0;
6-
#endif
7-
83
#if DEF_1
94
// cppcheck-suppress id
105
(void)0;

0 commit comments

Comments
 (0)