diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-20 13:41:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-20 13:41:51 +0000 |
commit | 122c57c0b82d125f33d2f036a67e96339e95c402 (patch) | |
tree | 1eb1e60847829feff616f74586ea83f2181c8865 /test/Archive/directory.ll | |
parent | 9d39cb1d6418c5a25fa74f09e593794a4c8fd4b6 (diff) | |
download | llvm-122c57c0b82d125f33d2f036a67e96339e95c402.tar.gz llvm-122c57c0b82d125f33d2f036a67e96339e95c402.tar.bz2 llvm-122c57c0b82d125f33d2f036a67e96339e95c402.tar.xz |
Add r184420 back, but also handle long file names.
Original message:
Don't include directory names in archives.
This matches the behavior of both gnu and os x versions of ar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Archive/directory.ll')
-rw-r--r-- | test/Archive/directory.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Archive/directory.ll b/test/Archive/directory.ll index f17ac5d36b..f88d604a23 100644 --- a/test/Archive/directory.ll +++ b/test/Archive/directory.ll @@ -1,2 +1,10 @@ ;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s ;CHECK: . Is a directory + +;RUN: rm -f %T/test.a +;RUN: touch %T/a-very-long-file-name +;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name +;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s +;MEMBERS-NOT: / +;MEMBERS: a-very-long-file-name +;MEMBERS: directory.ll |