1 ## Unsupported on windows as marking files "unreadable"
2 ## is non-trivial on windows.
3 # UNSUPPORTED: system-windows
4 # REQUIRES: non-root-user
6 # RUN: rm -rf %t && mkdir -p %t
7 # RUN: echo file1 > %t/1.txt
10 # RUN: llvm-ar rc %t/permission.b %t/1.txt
11 # RUN: chmod 100 %t/permission.b
12 # RUN: not llvm-ar p %t/permission.b 2>&1 | \
13 # RUN: FileCheck %s --check-prefix=NO-PERMISSION -DARCHIVE=%t/permission.b -DMSG=%errc_EACCES
15 # NO-PERMISSION: error: unable to open '[[ARCHIVE]]': [[MSG]]