aboutsummaryrefslogtreecommitdiff
path: root/time/tst-mktime4.c
AgeCommit message (Collapse)Author
2021-02-16tst: time: Provide Y2038 tests for mktime (tst-mktime4.c)Lukasz Majewski
This change adds new test to assess mktime's functionality. To be more specific - following use cases are checked: - Pass struct tm as epoch time - Pass struct tm as value just before Y2038 threshold (returned value shall be 0x7FFFFFFF) - Pass struct tm as the first value after Y2038 threshold (expected value - 0x80000000) Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>