summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-22 12:41:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-22 12:41:04 +0000
commitbb8234b7ff932e371ca11a4cb725b51958bf597d (patch)
tree41c5244c0b616285f156345bd6fe8318935639fa /test
parent3a8ee4ffd783bd0cf2d83089edb43ec546b49d0d (diff)
downloadllvm-bb8234b7ff932e371ca11a4cb725b51958bf597d.tar.gz
llvm-bb8234b7ff932e371ca11a4cb725b51958bf597d.tar.bz2
llvm-bb8234b7ff932e371ca11a4cb725b51958bf597d.tar.xz
Don't depend on a llvm-ar specific behavior.
GNU ar when not given the a or b modifiers replaces archive members in the same location of the old ones. I am about to implement that in llvm-ar. For now, just don't depend on the current llvm-ar behavior on this test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Object/archive-replace-pos.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Object/archive-replace-pos.test b/test/Object/archive-replace-pos.test
index 0ba9b6dd28..af0a30129f 100644
--- a/test/Object/archive-replace-pos.test
+++ b/test/Object/archive-replace-pos.test
@@ -12,7 +12,8 @@ CHECK: .foo
CHECK-NEXT: .zed
CHECK-NEXT: .bar
-RUN: llvm-ar rc %t.a %t.foo %t.bar
+RUN: rm -f %t.a
+RUN: llvm-ar rc %t.a %t.zed %t.foo %t.bar
RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK2 %s
CHECK2: .zed