xref: /llvm-project/llvm/test/tools/llvm-ar/missing-thin-archive-member.test (revision 42a21778f61cdc8462ce2cfb6ad7bc1992b2063c)
1## Test llvm-ar errors when thin archive members are missing.
2
3# RUN: rm -rf %t-archive.a
4# RUN: echo contents > %t-temp.txt
5
6## File is not in archive.
7# RUN: llvm-ar qT %t-archive.a
8# RUN: not llvm-ar p %t-archive.a %t-temp.txt 2>&1 | FileCheck %s -DPATH=%t-temp.txt --check-prefix=MISSING
9
10# MISSING: error: '[[PATH]]' was not found
11
12## File has been deleted.
13# RUN: llvm-ar qT %t-archive.a %t-temp.txt
14# RUN: rm %t-temp.txt
15# RUN: not llvm-ar p %t-archive.a 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=DELETED
16
17# DELETED: error: [[MSG]]
18