mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 21:26:07 +00:00

Test files in the same directory share the same %T. %T is easy to misuse and cause race conditions (when running concurrently) so it has been deprecated since D48842 (see docs/CommandGuide/lit.rst). While here, add `rm -rf %t.dir` so that tests cannot depend on old files lying around. Reviewed By: jhenderson, ruiu Differential Revision: https://reviews.llvm.org/D69572
11 lines
464 B
ArmAsm
11 lines
464 B
ArmAsm
# REQUIRES: x86
|
|
# Check that we fall back to search paths if a version script was not found
|
|
# This behaviour matches ld.bfd.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
# RUN: rm -rf %t.dir && mkdir -p %t.dir
|
|
# RUN: echo '{};' > %t.dir/script
|
|
# RUN: ld.lld -L%t.dir --version-script=script %t.o -o /dev/null
|
|
# RUN: not ld.lld --version-script=script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
|
|
# ERROR: error: cannot find version script
|