]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux: Add y2106 support on utimensat tests
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 19 Mar 2021 17:16:09 +0000 (14:16 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 29 Mar 2021 13:22:13 +0000 (10:22 -0300)
commitf8466cc504d25ebf44734aad1efb603d55d16f08
tree2e028e100060f10aa3dd0a2febe43623d13a1485
parent6fbc0540de8ecf8ecdf36925769797a0e9dfea4b
linux: Add y2106 support on utimensat tests

The tests are refactored to use a common skeleton that handles whether
the underlying filesystem supports 64 bit time, skips 64 bit time
tests when the TU only supports 32 bit, and also skip 64 bit time
tests larger than 32 unsigned int (y2106) if the system does not
support it (MIPSn64 on kernels without statx support).

Checked on x86_64-linux-gnu and i686-linux-gnu.  I also checked
on a mips64el-linux-gnu with 4.1.4 and 5.10.0-4-5kc-malta kernel
to verify if the y2106 are indeed skipped.
sysdeps/unix/sysv/linux/tst-futimens.c
sysdeps/unix/sysv/linux/tst-utime.c
sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-utimes.c