Add a bunch of regression tests for time conversion.
authorbeck <beck@openbsd.org>
Sun, 6 Nov 2022 12:57:08 +0000 (12:57 +0000)
committerbeck <beck@openbsd.org>
Sun, 6 Nov 2022 12:57:08 +0000 (12:57 +0000)
commit2dc6bcb07aa2e8935250f00b19a12a3d296c2db7
treea4f29eb7edf05c6dc664f862b1a94c5b0cdfb901
parent993e4236e02253e42e6aae5205c48133d5b5fa6d
Add a bunch of regression tests for time conversion.

This regression tests time conversion across various
limits, leap seconds, and daylight transistions.
gmtime_r, localtime_r, timegm, and mktime are
tested against themselves and expected outputs.

It requires the "posix" and "right" zoneinfo to be
installed on the test running machine in order to
access testable time zones. If those are not present
the test is skipped successfully with a warning.
regress/lib/libc/time/time_conversion/Makefile [new file with mode: 0644]
regress/lib/libc/time/time_conversion/timetest.c [new file with mode: 0644]