diff --git a/test/cli/more-projects_test.py b/test/cli/more-projects_test.py index a4c629c67423..00f9d73059e1 100644 --- a/test/cli/more-projects_test.py +++ b/test/cli/more-projects_test.py @@ -640,6 +640,7 @@ def test_json_file_ignore_2(tmpdir): def test_project_missing_files(): + filename = os.path.join('invalid-project', 'main.c') ret, _, stderr = cppcheck(['--template=cppcheck1', '--project=' + os.path.join('invalid-project', 'invalid-project.vcxproj')]) assert ret == 0 - assert stderr == '[invalid-project/main.c:0]: (error) File invalid-project/main.c does not exists. Skipping file.\n' \ No newline at end of file + assert stderr == '[{}:0]: (error) File {} does not exists. Skipping file.\n'.format(filename, filename) \ No newline at end of file