(extra_args=None, exp_vs_cfg='Debug|Win32 Debug|x64 Release|Win32 Release|x64')
| 151 | assert stderr == '[main.c:5]: (error) Division by zero.\n' |
| 152 | |
| 153 | def __test_vs_project_local_path(extra_args=None, exp_vs_cfg='Debug|Win32 Debug|x64 Release|Win32 Release|x64'): |
| 154 | args = [ |
| 155 | '--template=cppcheck1', |
| 156 | '--project=helloworld.vcxproj' |
| 157 | ] |
| 158 | if extra_args: |
| 159 | args += extra_args |
| 160 | ret, stdout, stderr = cppcheck(args, cwd=__proj_dir) |
| 161 | assert ret == 0, stdout |
| 162 | assert __getVsConfigs(stdout, 'main.c') == exp_vs_cfg |
| 163 | assert stderr == '[main.c:5]: (error) Division by zero.\n' |
| 164 | |
| 165 | def test_vs_project_local_path(): |
| 166 | __test_vs_project_local_path() |
no test coverage detected