(capsys)
| 79 | |
| 80 | |
| 81 | def test_3_no_use_time_bits(capsys): |
| 82 | is_safe = check_y2038_safe('./addons/test/y2038/y2038-test-3-no-use-time-bits.c.dump', quiet=True) |
| 83 | assert(is_safe is False) |
| 84 | captured = capsys.readouterr() |
| 85 | captured = captured.out.splitlines() |
| 86 | json_output = convert_json_output(captured) |
| 87 | |
| 88 | # Included bad _USE_TIME_BITS64 definition must trigger the errors. |
| 89 | unsafe_calls = json_output['unsafe-call'] |
| 90 | assert(len(unsafe_calls) == 2) |
| 91 | |
| 92 | |
| 93 | def test_4_good(capsys): |
nothing calls this directly
no test coverage detected