1 ## Unsupported on AIX and FreeBSD as AIX and FreeBSD 12 and earlier allow
2 ## reading directories by default.
3 # UNSUPPORTED: system-freebsd, system-aix
5 # RUN: rm -rf %t && mkdir -p %t
7 ## Passing in a directory:
8 # RUN: mkdir -p %t/tmpDir
9 # RUN: not llvm-ar p %t/tmpDir 2>&1 | \
10 # RUN: FileCheck %s --check-prefix=IS-DIR -DARCHIVE=%t/tmpDir -DMSG=%errc_EISDIR
12 # IS-DIR: error: unable to open '[[ARCHIVE]]': [[MSG]]