summaryrefslogtreecommitdiffstats
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
commit9cea44a5f2cee1f167b73c119c8ac197763fb8fa (patch)
treed6d2219752098d1547f1e85a463f763fe70b52d2
parent76ad5d7589a5173a8ca9f2edfd828ccb0bb723a9 (diff)
downloadbcm5719-llvm-9cea44a5f2cee1f167b73c119c8ac197763fb8fa.tar.gz
bcm5719-llvm-9cea44a5f2cee1f167b73c119c8ac197763fb8fa.zip
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. llvm-svn: 186823
-rw-r--r--llvm/test/Object/archive-replace-pos.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Object/archive-replace-pos.test b/llvm/test/Object/archive-replace-pos.test
index 0ba9b6dd282..af0a30129f9 100644
--- a/llvm/test/Object/archive-replace-pos.test
+++ b/llvm/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
OpenPOWER on IntegriCloud