(tmp_path)
| 268 | assert stderr == '' |
| 269 | |
| 270 | def test_suppress_project_relative(tmp_path): |
| 271 | shutil.copytree(os.path.join(__script_dir, 'helloworld'), tmp_path / 'helloworld') |
| 272 | project_file = os.path.join('helloworld', 'test.cppcheck') |
| 273 | create_gui_project_file(tmp_path / project_file, |
| 274 | paths=['.'], |
| 275 | suppressions=[{'fileName':'main.c', 'id':'zerodiv'}]) |
| 276 | |
| 277 | args = [ |
| 278 | '--project={}'.format(project_file) |
| 279 | ] |
| 280 | |
| 281 | ret, stdout, stderr = cppcheck(args, cwd=tmp_path) |
| 282 | assert ret == 0, stdout |
| 283 | assert stderr == '' |
| 284 | |
| 285 | |
| 286 | def test_suppress_project_absolute(tmp_path): |
nothing calls this directly
no test coverage detected