Skip to content

Commit d12f7ea

Browse files
committed
update cli tests
1 parent 37264bf commit d12f7ea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/cli/helloworld_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def test_missing_include_system(): # #11283
357357
]
358358

359359
_, _, stderr = cppcheck(args, cwd=__script_dir)
360-
assert stderr.replace('\\', '/') == 'helloworld/main.c:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]\n'
360+
assert stderr.replace('\\', '/') == 'helloworld/main.c:1:2: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]\n'
361361

362362

363363
def test_sarif():

test/cli/other_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def test_missing_include(tmpdir): # #11283
2525
test_file = os.path.join(tmpdir, 'test.c')
2626
with open(test_file, 'wt') as f:
2727
f.write("""
28-
#include "test.h"
29-
""")
28+
#include "test.h"
29+
""")
3030

3131
args = ['--enable=missingInclude', '--template=simple', test_file]
3232

3333
_, _, stderr = cppcheck(args)
34-
assert stderr == '{}:2:0: information: Include file: "test.h" not found. [missingInclude]\n'.format(test_file)
34+
assert stderr == '{}:2:2: information: Include file: "test.h" not found. [missingInclude]\n'.format(test_file)
3535

3636

3737
def __test_missing_include_check_config(tmpdir, use_j):

0 commit comments

Comments
 (0)