MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / test_3_no_use_time_bits

Function test_3_no_use_time_bits

addons/test/y2038_test.py:81–90  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

79
80
81def 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
93def test_4_good(capsys):

Callers

nothing calls this directly

Calls 2

check_y2038_safeFunction · 0.90
convert_json_outputFunction · 0.85

Tested by

no test coverage detected