test/cli: Add one more exclude path test

This commit is contained in:
Daniel Marjamäki 2019-04-15 19:46:12 +02:00
parent 83f8d7fab9
commit 146683fdeb
1 changed files with 5 additions and 0 deletions

View File

@ -115,3 +115,8 @@ def test_gui_project_loads_relative_vs_solution():
assert stderr == ('[a/a.c:1]: (error) Division by zero.\n' assert stderr == ('[a/a.c:1]: (error) Division by zero.\n'
'[b/b.c:1]: (error) Division by zero.\n') '[b/b.c:1]: (error) Division by zero.\n')
def test_gui_project_loads_relative_vs_solution():
create_gui_project_file('test.cppcheck', root_path='proj2', import_project='proj2/proj2.sln', exclude_paths=['b'])
ret, stdout, stderr = cppcheck('--project=test.cppcheck')
assert stderr == '[a/a.c:1]: (error) Division by zero.\n'