18 lines · plain
1## Test llvm-ar errors when thin archive members are missing.2 3# RUN: rm -rf %t-archive.a4# RUN: echo contents > %t-temp.txt5 6## File is not in archive.7# RUN: llvm-ar qT %t-archive.a8# RUN: not llvm-ar p %t-archive.a %t-temp.txt 2>&1 | FileCheck %s -DPATH=%t-temp.txt --check-prefix=MISSING9 10# MISSING: error: '[[PATH]]' was not found11 12## File has been deleted.13# RUN: llvm-ar qT %t-archive.a %t-temp.txt14# RUN: rm %t-temp.txt15# RUN: not llvm-ar p %t-archive.a 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=DELETED16 17# DELETED: error: [[MSG]]18