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