Skip to content

Commit

Permalink
Write to a temporary file in test instead of random file in the test …
Browse files Browse the repository at this point in the history
…directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295815 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Feb 22, 2017
1 parent 7f45e91 commit 5edec69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/Object/archive-pad.test
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5edec69

Please sign in to comment.