From: Saleem Abdulrasool Date: Sun, 13 Nov 2016 20:43:41 +0000 (+0000) Subject: test: remove the archive before modifying it X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b20442fc20a0351554dbf2515890110d5c17b01;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286778 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/llvm-strings/archive-filename.test b/test/tools/llvm-strings/archive-filename.test index 52c028eb525..a07e2158763 100644 --- a/test/tools/llvm-strings/archive-filename.test +++ b/test/tools/llvm-strings/archive-filename.test @@ -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