[all-commits] [llvm/llvm-project] 7a4b27: [lld] Add test suite mode for running LLD main twice

Shoaib Meenai via All-commits all-commits at lists.llvm.org
Mon Nov 1 14:27:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a4b27609d450d70fb072306446b1c0414066b74
      https://github.com/llvm/llvm-project/commit/7a4b27609d450d70fb072306446b1c0414066b74
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2021-11-01 (Mon, 01 Nov 2021)

  Changed paths:
    M lld/test/MachO/error-limit.test
    M lld/test/MachO/invalid/bad-archive.s
    M lld/test/MachO/invalid/cstring-dedup.s
    M lld/test/MachO/invalid/lto-bitcode-nodatalayout.ll
    M lld/test/MachO/invalid/reserved-section-name.s
    M lld/test/MachO/time-trace.s
    M lld/test/lit.cfg.py

  Log Message:
  -----------
  [lld] Add test suite mode for running LLD main twice

LLD_IN_TEST determines how many times each port's `main` function is
run in each LLD process, and setting LLD_IN_TEST=2 (or higher) is useful
for checking if we're cleaning up and resetting global state correctly.
Add a test suite parameter to enable this easily. There's work in
progress to remove global state (e.g. D108850), but this seems useful in
the interim.

Reviewed By: rnk

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




More information about the All-commits mailing list