llvm-for-llvmta/test/tools/llvm-ar/error-opening-directory.test

13 lines
413 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
## 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
# IS-DIR: error: unable to open '[[ARCHIVE]]': {{[iI]}}s a directory