summaryrefslogtreecommitdiffstats
path: root/tests/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-08 11:53:19 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-08 11:53:19 -0500
commit8917a48c31540dd7a99f95dd317d6cf1ac2f6803 (patch)
tree673d875cc007d504c6170a9cc19e06e88e5690d1 /tests/tests.sh
parent2d5edb37b924715b4fbee4d917ac334c773fca61 (diff)
downloadbfs-8917a48c31540dd7a99f95dd317d6cf1ac2f6803.tar.xz
tests/xtouch: Add some missing POSIX touch features
Diffstat (limited to 'tests/tests.sh')
-rwxr-xr-xtests/tests.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tests.sh b/tests/tests.sh
index 6a32f62..8d13aca 100755
--- a/tests/tests.sh
+++ b/tests/tests.sh
@@ -362,12 +362,12 @@ make_loops "$TMP/loops"
# Creates a file+directory structure with varying timestamps
function make_times() {
- "$XTOUCH" -p -t 199112140000 "$1/a"
- "$XTOUCH" -p -t 199112140001 "$1/b"
- "$XTOUCH" -p -t 199112140002 "$1/c"
+ "$XTOUCH" -p -t "1991-12-14 00:00" "$1/a"
+ "$XTOUCH" -p -t "1991-12-14 00:01" "$1/b"
+ "$XTOUCH" -p -t "1991-12-14 00:02" "$1/c"
ln -s a "$1/l"
- "$XTOUCH" -p -h -t 199112140003 "$1/l"
- "$XTOUCH" -p -t 199112140004 "$1"
+ "$XTOUCH" -p -h -t "1991-12-14 00:03" "$1/l"
+ "$XTOUCH" -p -t "1991-12-14 00:04" "$1"
}
make_times "$TMP/times"