(extra_args)
| 72 | |
| 73 | # TODO: remove overrides when this is fully working |
| 74 | def __test_suppress_inline(extra_args): |
| 75 | args = [ |
| 76 | '-q', |
| 77 | '--template=simple', |
| 78 | '--enable=information,style', |
| 79 | '--inline-suppr', |
| 80 | '--error-exitcode=1', |
| 81 | 'whole-program/odr1.cpp', |
| 82 | 'whole-program/odr2.cpp' |
| 83 | ] |
| 84 | |
| 85 | args += extra_args |
| 86 | |
| 87 | ret, stdout, stderr = cppcheck(args, cwd=__script_dir) |
| 88 | lines = stderr.splitlines() |
| 89 | assert lines == [] |
| 90 | assert stdout == '' |
| 91 | assert ret == 0, stdout |
| 92 | |
| 93 | |
| 94 | def test_suppress_inline(): |
no test coverage detected