diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-22 15:10:23 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-04-15 09:39:43 -0300 |
commit | 243339d055dec61df529d44224c07473d6bf1b5b (patch) | |
tree | d7672b73d3db5207dcf68fa5f56727cf10a576a0 | |
parent | 52290d8c04569615fb011ee286d52dc5147afbd7 (diff) | |
download | glibc-243339d055dec61df529d44224c07473d6bf1b5b.tar glibc-243339d055dec61df529d44224c07473d6bf1b5b.tar.gz glibc-243339d055dec61df529d44224c07473d6bf1b5b.tar.bz2 glibc-243339d055dec61df529d44224c07473d6bf1b5b.zip |
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 <siddhesh@sourceware.org>
-rw-r--r-- | io/Makefile | 5 | ||||
-rw-r--r-- | io/tst-futimens.c (renamed from sysdeps/unix/sysv/linux/tst-futimens.c) | 0 | ||||
-rw-r--r-- | io/tst-utime.c (renamed from sysdeps/unix/sysv/linux/tst-utime.c) | 0 | ||||
-rw-r--r-- | io/tst-utimensat-skeleton.c (renamed from sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c) | 0 | ||||
-rw-r--r-- | io/tst-utimes.c (renamed from sysdeps/unix/sysv/linux/tst-utimes.c) | 0 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/Makefile | 2 |
6 files changed, 5 insertions, 2 deletions
diff --git a/io/Makefile b/io/Makefile index 914d7689b2..cf631ff36b 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 index ac7a980017..ac7a980017 100644 --- a/sysdeps/unix/sysv/linux/tst-futimens.c +++ b/io/tst-futimens.c diff --git a/sysdeps/unix/sysv/linux/tst-utime.c b/io/tst-utime.c index c1c7e75a29..c1c7e75a29 100644 --- a/sysdeps/unix/sysv/linux/tst-utime.c +++ b/io/tst-utime.c diff --git a/sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c b/io/tst-utimensat-skeleton.c index 3589146db5..3589146db5 100644 --- a/sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c +++ b/io/tst-utimensat-skeleton.c diff --git a/sysdeps/unix/sysv/linux/tst-utimes.c b/io/tst-utimes.c index ba710508b7..ba710508b7 100644 --- a/sysdeps/unix/sysv/linux/tst-utimes.c +++ b/io/tst-utimes.c diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 303fa297bc..fb155cf856 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 |