aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-05-05 17:59:36 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-05-05 17:59:36 +0000
commit49e496d2776870fb36ed8ea4c8139b5eb9f7f747 (patch)
treeb16e6c9e0c5ad15706d930c97ef2bfbed2591c80
parent89c883c09ab5e0fdca7ac5dfe74fcc46b7669eb5 (diff)
stat: Set the timezone before testing -t flag
The test assumes UTC, which is what I use on my development systems and clearly what is used on our CI runners. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D56836
-rwxr-xr-xusr.bin/stat/tests/stat_test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/stat/tests/stat_test.sh b/usr.bin/stat/tests/stat_test.sh
index f2de15cf4f9b..282efc91303f 100755
--- a/usr.bin/stat/tests/stat_test.sh
+++ b/usr.bin/stat/tests/stat_test.sh
@@ -1,7 +1,7 @@
#
# Copyright (c) 2017 Dell EMC
# All rights reserved.
-# Copyright (c) 2025 Klara, Inc.
+# Copyright (c) 2025-2026 Klara, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -234,9 +234,9 @@ t_flag_head()
{
atf_set "descr" "Verify the output format for -t"
}
-
t_flag_body()
{
+ export TZ=UTC
atf_check touch foo
atf_check touch -d 1970-01-01T00:00:42 foo
atf_check -o inline:'42\n' \