Rafael Espindola | 34ac52d | 2013-07-12 20:21:39 +0000 | [diff] [blame] | 1 | ;RUN: rm -f %T/test.a |
Rafael Espindola | 8fe960e | 2013-06-19 14:58:16 +0000 | [diff] [blame] | 2 | ;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s |
Rafael Espindola | 34ac52d | 2013-07-12 20:21:39 +0000 | [diff] [blame] | 3 | ;CHECK: .: Is a directory |
Rafael Espindola | 086dfda | 2013-07-15 22:16:53 +0000 | [diff] [blame] | 4 | |
NAKAMURA Takumi | 1cf9591 | 2013-07-16 09:06:47 +0000 | [diff] [blame] | 5 | ; Opening a directory works on cygwin and freebsd. |
Rafael Espindola | b0aa9e9 | 2013-07-17 14:58:25 +0000 | [diff] [blame] | 6 | ;XFAIL: freebsd, cygwin |
Rafael Espindola | 122c57c | 2013-06-20 13:41:51 +0000 | [diff] [blame] | 7 | |
| 8 | ;RUN: rm -f %T/test.a |
| 9 | ;RUN: touch %T/a-very-long-file-name |
| 10 | ;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name |
Rafael Espindola | eb729e0 | 2013-06-20 18:30:37 +0000 | [diff] [blame] | 11 | ;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name |
Rafael Espindola | 34ac52d | 2013-07-12 20:21:39 +0000 | [diff] [blame] | 12 | ;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s |
Rafael Espindola | 122c57c | 2013-06-20 13:41:51 +0000 | [diff] [blame] | 13 | ;MEMBERS-NOT: / |
Rafael Espindola | 122c57c | 2013-06-20 13:41:51 +0000 | [diff] [blame] | 14 | ;MEMBERS: directory.ll |
Rafael Espindola | 34ac52d | 2013-07-12 20:21:39 +0000 | [diff] [blame] | 15 | ;MEMBERS: a-very-long-file-name |
Rafael Espindola | eb729e0 | 2013-06-20 18:30:37 +0000 | [diff] [blame] | 16 | ;MEMBERS-NOT: a-very-long-file-name |