summaryrefslogtreecommitdiffstats
path: root/tests/gnu
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-03-07 16:01:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-03-07 16:01:46 -0500
commit416ca3b557055efa5746a4d40d927391c59a9292 (patch)
treec4f2d8358c7532de5e68e0f5ddfa99205e89efba /tests/gnu
parenta1e288cb6a2482b7acc1edb92eea9d676da0729f (diff)
downloadbfs-416ca3b557055efa5746a4d40d927391c59a9292.tar.xz
tests: Change the timezone for -daystart tests
Otherwise, if the test files are created just before midnight, and the test runs just after midnight, -daystart will consider them one day old. Fixes #132
Diffstat (limited to 'tests/gnu')
-rw-r--r--tests/gnu/daystart.sh2
-rw-r--r--tests/gnu/daystart_twice.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/gnu/daystart.sh b/tests/gnu/daystart.sh
index 9799bca..9c3be1a 100644
--- a/tests/gnu/daystart.sh
+++ b/tests/gnu/daystart.sh
@@ -1 +1 @@
-bfs_diff basic -daystart -mtime 0
+TZ=WAT-1 bfs_diff basic -daystart -mtime 0
diff --git a/tests/gnu/daystart_twice.sh b/tests/gnu/daystart_twice.sh
index 21b2c0f..edbf18d 100644
--- a/tests/gnu/daystart_twice.sh
+++ b/tests/gnu/daystart_twice.sh
@@ -1 +1 @@
-bfs_diff basic -daystart -daystart -mtime 0
+TZ=WAT-1 bfs_diff basic -daystart -daystart -mtime 0