]> granicus.if.org Git - llvm/commitdiff
test: remove the archive before modifying it
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Nov 2016 20:43:41 +0000 (20:43 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Nov 2016 20:43:41 +0000 (20:43 +0000)
The archive may already exist when not doing a clean test run.  The dirty state
can cause a test failure.  Remove the archive first.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286778 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-strings/archive-filename.test

index 52c028eb525ef1b213ac3a524db9b09ef47a7b01..a07e215876355e69e5c5223cab3022278e0aee41 100644 (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