[lld] a337c16 - [lld-macho][test][nfc] Update stabs.s to use GMT time zone instead of UTC

Pengxuan Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 08:52:18 PST 2022


Author: Pengxuan Zheng
Date: 2022-12-23T08:52:07-08:00
New Revision: a337c16d96a0e4bf0b0fb4faebc08c8a1a13a68b

URL: https://github.com/llvm/llvm-project/commit/a337c16d96a0e4bf0b0fb4faebc08c8a1a13a68b
DIFF: https://github.com/llvm/llvm-project/commit/a337c16d96a0e4bf0b0fb4faebc08c8a1a13a68b.diff

LOG: [lld-macho][test][nfc] Update stabs.s to use GMT time zone instead of UTC

This is to work around a singularity container issue we ran into recently. The
container fails to honor the time zone setting (TZ=UTC) when executing the touch
command. Replacing UTC with GMT worked correctly in the container. This change
does not change (at least not intentionally) the function of the test in any way
since GMT and UTC should be equivalent AFAIK. Please refer to the discussions in
D139980 for more background information.

Reviewed By: int3, #lld-macho

Differential Revision: https://reviews.llvm.org/D140233

Added: 
    

Modified: 
    lld/test/MachO/stabs.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/stabs.s b/lld/test/MachO/stabs.s
index b10793fae157..0d93b7214d3f 100644
--- a/lld/test/MachO/stabs.s
+++ b/lld/test/MachO/stabs.s
@@ -5,8 +5,8 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/no-debug.s -o %t/no-debug.o
 ## Set modtimes of the files for deterministic test output.
-# RUN: env TZ=UTC touch -t "197001010000.16" %t/test.o
-# RUN: env TZ=UTC touch -t "197001010000.32" %t/foo.o
+# RUN: env TZ=GMT touch -t "197001010000.16" %t/test.o
+# RUN: env TZ=GMT touch -t "197001010000.32" %t/foo.o
 # RUN: llvm-ar rcsU %t/foo.a %t/foo.o
 
 # RUN: ZERO_AR_DATE=0 %lld -lSystem %t/test.o %t/foo.o %t/no-debug.o -o %t/test


        


More information about the llvm-commits mailing list