• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Unsupported on windows as marking files "unreadable"
2## is non-trivial on windows.
3# UNSUPPORTED: system-windows
4
5# RUN: rm -rf %t && mkdir -p %t
6# RUN: echo file1 > %t/1.txt
7
8## No Permission:
9# RUN: llvm-ar rc %t/permission.b %t/1.txt
10# RUN: chmod 100 %t/permission.b
11# RUN: not llvm-ar p %t/permission.b 2>&1 | \
12# RUN:   FileCheck %s --check-prefix=NO-PERMISSION -DARCHIVE=%t/permission.b
13
14# NO-PERMISSION: error: unable to open '[[ARCHIVE]]': {{[pP]}}ermission denied
15