Write to a temporary file in test instead of random file in the test directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2017-02-22 09:02:27 +00:00
parent 7f45e918f8
commit 5edec6931c

View File

@ -5,15 +5,15 @@ RUN: echo foo > %t.o
RUN: rm -f %t.a
RUN: llvm-ar -format=bsd rc %t.a %t.o
RUN: llvm-ar p %t.a > %bsd.o
RUN: cmp %bsd.o %t.o
RUN: llvm-ar p %t.a > %t.bsd.o
RUN: cmp %t.bsd.o %t.o
RUN: rm -f %t.a
RUN: llvm-ar -format=gnu rc %t.a %t.o
RUN: llvm-ar p %t.a > %gnu.o
RUN: cmp %gnu.o %t.o
RUN: llvm-ar p %t.a > %t.gnu.o
RUN: cmp %t.gnu.o %t.o
RUN: rm -f %t.a
RUN: llvm-ar -format=darwin rc %t.a %t.o
RUN: llvm-ar p %t.a > %darwin.o
RUN: not cmp %darwin.o %t.o
RUN: llvm-ar p %t.a > %t.darwin.o
RUN: not cmp %t.darwin.o %t.o