io: Move file timestamps tests out of Linux
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Mar 2021 18:10:23 +0000 (15:10 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 15 Apr 2021 12:39:43 +0000 (09:39 -0300)
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 <siddhesh@sourceware.org>
io/Makefile
io/tst-futimens.c [moved from sysdeps/unix/sysv/linux/tst-futimens.c with 100% similarity]
io/tst-utime.c [moved from sysdeps/unix/sysv/linux/tst-utime.c with 100% similarity]
io/tst-utimensat-skeleton.c [moved from sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c with 100% similarity]
io/tst-utimes.c [moved from sysdeps/unix/sysv/linux/tst-utimes.c with 100% similarity]
sysdeps/unix/sysv/linux/Makefile

index 914d768..cf631ff 100644 (file)
@@ -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
index 303fa29..fb155cf 100644 (file)
@@ -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