brintos

brintos / llvm-project-archived public Read only

0
0
Text · 504 B · b42f953 Raw
16 lines · plain
1## Unsupported on windows as marking files "unreadable"2## is non-trivial on windows.3# UNSUPPORTED: system-windows4# REQUIRES: non-root-user5 6# RUN: rm -rf %t && mkdir -p %t7# RUN: echo file1 > %t/1.txt8 9## No Permission:10# RUN: llvm-ar rc %t/permission.b %t/1.txt11# RUN: chmod 100 %t/permission.b12# RUN: not llvm-ar p %t/permission.b 2>&1 | \13# RUN:   FileCheck %s --check-prefix=NO-PERMISSION -DARCHIVE=%t/permission.b -DMSG=%errc_EACCES14 15# NO-PERMISSION: error: unable to open '[[ARCHIVE]]': [[MSG]]16