Files
clang-p2996/llvm/test/tools/llvm-ar/error-opening-directory.test
Abhina Sreeskantharajan 42a21778f6 [test] Use host platform specific error message substitution in lit tests
On z/OS, the following error message is not matched correctly in lit tests.

```
EDC5129I No such file or directory.
```

This patch uses a lit config substitution to check for platform specific error messages.

Reviewed By: muiez, jhenderson

Differential Revision: https://reviews.llvm.org/D95246
2021-01-29 07:16:30 -05:00

13 lines
418 B
Plaintext

## 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]]