blob: bf8ff3259502f37aef392aeaecba899c2f06f08f [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
NAKAMURA Takumi1cf95912013-07-16 09:06:47 +00005; Opening a directory works on cygwin and freebsd.
Rafael Espindolab0aa9e92013-07-17 14:58:25 +00006;XFAIL: freebsd, cygwin
Rafael Espindola122c57c2013-06-20 13:41:51 +00007
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 Espindolaeb729e02013-06-20 18:30:37 +000011;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
Rafael Espindola34ac52d2013-07-12 20:21:39 +000012;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
Rafael Espindola122c57c2013-06-20 13:41:51 +000013;MEMBERS-NOT: /
Rafael Espindola122c57c2013-06-20 13:41:51 +000014;MEMBERS: directory.ll
Rafael Espindola34ac52d2013-07-12 20:21:39 +000015;MEMBERS: a-very-long-file-name
Rafael Espindolaeb729e02013-06-20 18:30:37 +000016;MEMBERS-NOT: a-very-long-file-name