blob: 0d047b811a922dcfa374c17c2eac9af1a8d09a90 [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.
6; On windows we just get a "Permission denied."
7;XFAIL: freebsd, win32, mingw32, cygwin
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