(capsys)
| 105 | |
| 106 | |
| 107 | def test_5_good(capsys): |
| 108 | is_safe = check_y2038_safe('./addons/test/y2038/y2038-test-5-good-no-time-used.c.dump', quiet=True) |
| 109 | assert(is_safe is True) |
| 110 | captured = capsys.readouterr() |
| 111 | captured = captured.out.splitlines() |
| 112 | json_output = convert_json_output(captured) |
| 113 | |
| 114 | # There are no warnings from C sources. |
| 115 | if 'unsafe-call' in json_output: |
| 116 | unsafe_calls = json_output['unsafe-call'] |
| 117 | assert(len([c for c in unsafe_calls if c['file'].endswith('.c')]) == 0) |
| 118 | |
| 119 | |
| 120 | def test_build_system_integration(): |
nothing calls this directly
no test coverage detected