2013-07-13 04:21:39 +08:00
|
|
|
;RUN: rm -f %T/test.a
|
2013-06-19 22:58:16 +08:00
|
|
|
;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
|
2013-07-13 04:21:39 +08:00
|
|
|
;CHECK: .: Is a directory
|
2013-07-16 06:16:53 +08:00
|
|
|
|
|
|
|
; opening a directory works on freebsd. On windows we just get a
|
|
|
|
; "permission denied"
|
2013-07-16 07:51:47 +08:00
|
|
|
;XFAIL: freebsd, win32, mingw32
|
2013-06-20 21:41:51 +08:00
|
|
|
|
|
|
|
;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
|
2013-06-21 02:30:37 +08:00
|
|
|
;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
|
2013-07-13 04:21:39 +08:00
|
|
|
;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
|
2013-06-20 21:41:51 +08:00
|
|
|
;MEMBERS-NOT: /
|
|
|
|
;MEMBERS: directory.ll
|
2013-07-13 04:21:39 +08:00
|
|
|
;MEMBERS: a-very-long-file-name
|
2013-06-21 02:30:37 +08:00
|
|
|
;MEMBERS-NOT: a-very-long-file-name
|