The branch main has been updated by des:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=49e496d2776870fb36ed8ea4c8139b5eb9f7f747

commit 49e496d2776870fb36ed8ea4c8139b5eb9f7f747
Author:     Dag-Erling Smørgrav <[email protected]>
AuthorDate: 2026-05-05 17:59:36 +0000
Commit:     Dag-Erling Smørgrav <[email protected]>
CommitDate: 2026-05-05 17:59:36 +0000

    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
---
 usr.bin/stat/tests/stat_test.sh | 4 ++--
 1 file 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' \

Reply via email to