Skip to content

Commit a337c16

Browse files
committed
[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
1 parent fbee2dd commit a337c16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/test/MachO/stabs.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o
66
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/no-debug.s -o %t/no-debug.o
77
## Set modtimes of the files for deterministic test output.
8-
# RUN: env TZ=UTC touch -t "197001010000.16" %t/test.o
9-
# RUN: env TZ=UTC touch -t "197001010000.32" %t/foo.o
8+
# RUN: env TZ=GMT touch -t "197001010000.16" %t/test.o
9+
# RUN: env TZ=GMT touch -t "197001010000.32" %t/foo.o
1010
# RUN: llvm-ar rcsU %t/foo.a %t/foo.o
1111

1212
# RUN: ZERO_AR_DATE=0 %lld -lSystem %t/test.o %t/foo.o %t/no-debug.o -o %t/test

0 commit comments

Comments
 (0)