[llvm] r286778 - test: remove the archive before modifying it

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 12:43:41 PST 2016


Author: compnerd
Date: Sun Nov 13 14:43:41 2016
New Revision: 286778

URL: http://llvm.org/viewvc/llvm-project?rev=286778&view=rev
Log:
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.

Modified:
    llvm/trunk/test/tools/llvm-strings/archive-filename.test

Modified: llvm/trunk/test/tools/llvm-strings/archive-filename.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-strings/archive-filename.test?rev=286778&r1=286777&r2=286778&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-strings/archive-filename.test (original)
+++ llvm/trunk/test/tools/llvm-strings/archive-filename.test Sun Nov 13 14:43:41 2016
@@ -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




More information about the llvm-commits mailing list