test: remove the archive before modifying it

The archive may already exist when not doing a clean test run.  The dirty state
can cause a test failure.  Remove the archive first.

llvm-svn: 286778
This commit is contained in:
Saleem Abdulrasool 2016-11-13 20:43:41 +00:00
parent 7091820a96
commit 25d7683fe7
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
RUN: echo -n abcd > %T/abcd
RUN: rm -f %T/archive.a
RUN: llvm-ar -format gnu crs %T/archive.a %T/abcd
RUN: llvm-strings -f %T/archive.a | FileCheck %s
RUN: llvm-strings --print-file-name %T/archive.a | FileCheck %s