add utime (utimensat, futimens) functional tests
authorRich Felker <dalias@aerifal.cx>
Fri, 23 Aug 2019 00:58:00 +0000 (20:58 -0400)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 31 Oct 2019 01:41:07 +0000 (01:41 +0000)
commitde945f43a520b99f1a8ca454b399a2d3e22d3910
tree46dbd4b96457181e158e80132dd57a7fe5c095ec
parentc6fc4f04d62c2c495717268f73427f83ff685ff5
add utime (utimensat, futimens) functional tests

these tests check for the ability to set file timestamps using
UTIME_NOW, UTIME_OMIT, and explicit timespecs. they indirectly check
that fstat works as well, and include a check of the first Y2038
timestamp that overflows 32-bit time_t, reporting errors for a Y2038
EOL implementaton (if time_t is 32-bit) or a kernel, filesystem, or
library implementation that fails to set and read back timestamps past
the 32-bit limit despite having a time_t type that can represent such
a timestamp.
src/functional/utime.c [new file with mode: 0644]