diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-09 20:47:11 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-09 20:47:11 -0400 |
commit | d0804fcf6b690de364c35d8354b21f72422df079 (patch) | |
tree | 01dce094ab32c7d4a690ef9fd88f98fb4d5ff61f /tests | |
parent | c31577d102d87455f3f12086be4c0e2159fa5d35 (diff) | |
download | bfs-d0804fcf6b690de364c35d8354b21f72422df079.tar.xz |
tests: Move newer_link out of posix/
POSIX has clarified that it's unspecified whether -newer uses times from
stat() or lstat(), because implementations vary. It does specify that
it must fall back to lstat() for broken links, so test that.
Link: https://austingroupbugs.net/view.php?id=1776
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gnu/newer_link.out (renamed from tests/posix/newer_link.out) | 0 | ||||
-rw-r--r-- | tests/gnu/newer_link.sh (renamed from tests/posix/newer_link.sh) | 0 | ||||
-rw-r--r-- | tests/posix/newer_broken.out | 1 | ||||
-rw-r--r-- | tests/posix/newer_broken.sh | 4 |
4 files changed, 5 insertions, 0 deletions
diff --git a/tests/posix/newer_link.out b/tests/gnu/newer_link.out index d2dcdd1..d2dcdd1 100644 --- a/tests/posix/newer_link.out +++ b/tests/gnu/newer_link.out diff --git a/tests/posix/newer_link.sh b/tests/gnu/newer_link.sh index 685ac78..685ac78 100644 --- a/tests/posix/newer_link.sh +++ b/tests/gnu/newer_link.sh diff --git a/tests/posix/newer_broken.out b/tests/posix/newer_broken.out new file mode 100644 index 0000000..d2dcdd1 --- /dev/null +++ b/tests/posix/newer_broken.out @@ -0,0 +1 @@ +times diff --git a/tests/posix/newer_broken.sh b/tests/posix/newer_broken.sh new file mode 100644 index 0000000..dccaa73 --- /dev/null +++ b/tests/posix/newer_broken.sh @@ -0,0 +1,4 @@ +ln -s nowhere "$TEST/broken" +"$XTOUCH" -h -t "1991-12-14 00:03" "$TEST/broken" + +bfs_diff times -newer "$TEST/broken" |