blob: 7501b8297eaa263c5b6df7ba216ff6c5b2747edf [file] [log] [blame]
Rafael Espindola34ac52d2013-07-12 20:21:39 +00001;RUN: rm -f %T/test.a
Rafael Espindola8fe960e2013-06-19 14:58:16 +00002;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
Rafael Espindola34ac52d2013-07-12 20:21:39 +00003;CHECK: .: Is a directory
Rafael Espindola086dfda2013-07-15 22:16:53 +00004
5; opening a directory works on freebsd. On windows we just get a
6; "permission denied"
Rafael Espindola311dbb82013-07-15 23:51:47 +00007;XFAIL: freebsd, win32, mingw32
Rafael Espindola122c57c2013-06-20 13:41:51 +00008
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
Rafael Espindolaeb729e02013-06-20 18:30:37 +000012;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
Rafael Espindola34ac52d2013-07-12 20:21:39 +000013;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
Rafael Espindola122c57c2013-06-20 13:41:51 +000014;MEMBERS-NOT: /
Rafael Espindola122c57c2013-06-20 13:41:51 +000015;MEMBERS: directory.ll
Rafael Espindola34ac52d2013-07-12 20:21:39 +000016;MEMBERS: a-very-long-file-name
Rafael Espindolaeb729e02013-06-20 18:30:37 +000017;MEMBERS-NOT: a-very-long-file-name