# 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: mkdir -p %T/searchpath
# RUN: echo '{};' > %T/searchpath/t.script
# RUN: ld.lld -L%T/searchpath --version-script=t.script %t.o -o /dev/null
# RUN: not ld.lld --version-script=t.script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
# ERROR: error: cannot find version script

# 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: mkdir -p %T/searchpath
# RUN: echo '{};' > %T/searchpath/%basename_t.script
# RUN: ld.lld -L%T/searchpath --version-script=%basename_t.script %t.o -o /dev/null
# RUN: not ld.lld --version-script=%basename_t.script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
# ERROR: error: cannot find version script

Make a test more robust.
Make a test more robust.

Previously, this test fails if there's other test that happens to
create "t.script" in the current directory.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@337972 91177308-0d34-0410-b5e6-96231b3b80d8
