From 55cbda95a3fe682d7c8c5f8b10f92056ec824d9c Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 14 Dec 2022 07:14:29 -0500 Subject: [PATCH] Revert "[lld-macho][test][nfc] Update stabs.s to use touch -d instead of -t" This reverts commit 3c9f479a5e47d5f3de07ccac365589dd928bfd20. Breaks tests on macOS, see e.g. https://reviews.llvm.org/D139980#3993989 --- lld/test/MachO/stabs.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/test/MachO/stabs.s b/lld/test/MachO/stabs.s index 18d72e8..b10793f 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: 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 -- 2.7.4