aboutsummaryrefslogtreecommitdiffstats
path: root/test/Object/directory.ll
blob: 0d047b811a922dcfa374c17c2eac9af1a8d09a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;RUN: rm -f %T/test.a
;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
;CHECK: .: Is a directory

; Opening a directory works on cygwin and freebsd.
; On windows we just get a "Permission denied."
;XFAIL: freebsd, win32, mingw32, cygwin

;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 r %T/test.a %T/a-very-long-file-name
;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
;MEMBERS-NOT: /
;MEMBERS: directory.ll
;MEMBERS: a-very-long-file-name
;MEMBERS-NOT: a-very-long-file-name