From: Adhemerval Zanella Date: Mon, 22 Mar 2021 18:10:23 +0000 (-0300) Subject: io: Move file timestamps tests out of Linux X-Git-Tag: glibc-2.34~666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=243339d055dec61df529d44224c07473d6bf1b5b;p=thirdparty%2Fglibc.git io: Move file timestamps tests out of Linux Now that libsupport abstract Linux possible missing support (either due FS limitation that can't handle 64 bit timestamp or architectures that do not handle values larger than unsigned 32 bit values) the tests can be turned generic. Checked on x86_64-linux-gnu and i686-linux-gnu. I also built the tests for i686-gnu. Reviewed-by: Siddhesh Poyarekar --- diff --git a/io/Makefile b/io/Makefile index 914d7689b22..cf631ff36ba 100644 --- a/io/Makefile +++ b/io/Makefile @@ -68,7 +68,10 @@ tests := test-utime test-stat test-stat2 test-lfs tst-getcwd \ tst-fts tst-fts-lfs tst-open-tmpfile \ tst-copy_file_range tst-getcwd-abspath tst-lockf \ tst-ftw-lnk tst-file_change_detection tst-lchmod \ - tst-ftw-bz26353 tst-stat tst-stat-lfs + tst-ftw-bz26353 tst-stat tst-stat-lfs \ + tst-utime \ + tst-utimes \ + tst-futimens \ # Likewise for statx, but we do not need static linking here. tests-internal += tst-statx diff --git a/sysdeps/unix/sysv/linux/tst-futimens.c b/io/tst-futimens.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-futimens.c rename to io/tst-futimens.c diff --git a/sysdeps/unix/sysv/linux/tst-utime.c b/io/tst-utime.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-utime.c rename to io/tst-utime.c diff --git a/sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c b/io/tst-utimensat-skeleton.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c rename to io/tst-utimensat-skeleton.c diff --git a/sysdeps/unix/sysv/linux/tst-utimes.c b/io/tst-utimes.c similarity index 100% rename from sysdeps/unix/sysv/linux/tst-utimes.c rename to io/tst-utimes.c diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 303fa297bc1..fb155cf8567 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -107,7 +107,7 @@ tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \ test-errno-linux tst-memfd_create tst-mlock2 tst-pkey \ tst-rlimit-infinity tst-ofdlocks tst-gettid tst-gettid-kill \ tst-tgkill tst-sysvsem-linux tst-sysvmsg-linux tst-sysvshm-linux \ - tst-timerfd tst-ppoll tst-futimens tst-utime tst-utimes \ + tst-timerfd tst-ppoll \ tst-clock_adjtime tst-adjtimex tst-ntp_adjtime tst-ntp_gettime \ tst-ntp_gettimex tst-sigtimedwait