This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix test case that expects time_t to be a 32-bit type
ClosedPublic

Authored by mikhail.ramalho on Aug 29 2023, 8:34 AM.

Details

Summary

This patch changes a test case that tests for overflow when time_t is
32-bit long, however, it was checking size_t instead of time_t.

This in on par with other testcases that correctly check the size of
time_t (asctime_test.cpp, gmtime_r_test.cpp and gmtime_test.cpp).

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 29 2023, 8:34 AM
mikhail.ramalho requested review of this revision.Aug 29 2023, 8:34 AM
sivachandra accepted this revision.Aug 29 2023, 11:57 AM
This revision is now accepted and ready to land.Aug 29 2023, 11:57 AM