Revert "[lld-macho][test][nfc] Update stabs.s to use touch -d instead of -t"
authorNico Weber <thakis@chromium.org>
Wed, 14 Dec 2022 12:14:29 +0000 (07:14 -0500)
committerNico Weber <thakis@chromium.org>
Wed, 14 Dec 2022 12:14:29 +0000 (07:14 -0500)
This reverts commit 3c9f479a5e47d5f3de07ccac365589dd928bfd20.
Breaks tests on macOS, see e.g. https://reviews.llvm.org/D139980#3993989

lld/test/MachO/stabs.s

index 18d72e8..b10793f 100644 (file)
@@ -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: touch -d "1970-01-01 00:00:16 UTC" %t/test.o
-# RUN: touch -d "1970-01-01 00:00:32 UTC" %t/foo.o
+# RUN: env TZ=UTC touch -t "197001010000.16" %t/test.o
+# RUN: env TZ=UTC 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