[all-commits] [llvm/llvm-project] 3c9f47: [lld-macho][test][nfc] Update stabs.s to use touch...

pzhengqc via All-commits all-commits at lists.llvm.org
Tue Dec 13 17:06:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c9f479a5e47d5f3de07ccac365589dd928bfd20
      https://github.com/llvm/llvm-project/commit/3c9f479a5e47d5f3de07ccac365589dd928bfd20
  Author: Pengxuan Zheng <pzheng at quicinc.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M lld/test/MachO/stabs.s

  Log Message:
  -----------
  [lld-macho][test][nfc] Update stabs.s to use touch -d instead of -t

The test currently uses `touch -t` (e.g., `env TZ=UTC touch -t
"197001010000.16"`) to set file timestamps. However, this does not seem to set
the time zone correctly in a singularity container. While this is probably a
bug/limitation of the singularity container, but we can instead use `touch
-d` (e.g., `touch -d "1970-01-01 00:00:16 UTC"`) to achieve the same result
without relying on a fix from singularity. Thoughts?

Reviewed By: int3, #lld-macho

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




More information about the All-commits mailing list