7501b8297eaa263c5b6df7ba216ff6c5b2747edf
[oota-llvm.git] / test / Object / directory.ll
1 ;RUN: rm -f %T/test.a
2 ;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
3 ;CHECK: .: Is a directory
4
5 ; opening a directory works on freebsd. On windows we just get a
6 ; "permission denied"
7 ;XFAIL: freebsd, win32, mingw32
8
9 ;RUN: rm -f %T/test.a
10 ;RUN: touch %T/a-very-long-file-name
11 ;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name
12 ;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
13 ;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
14 ;MEMBERS-NOT: /
15 ;MEMBERS: directory.ll
16 ;MEMBERS: a-very-long-file-name
17 ;MEMBERS-NOT: a-very-long-file-name