You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
476 B
15 lines
476 B
4 months ago
|
## Unsupported on windows as marking files "unreadable"
|
||
|
## is non-trivial on windows.
|
||
|
# UNSUPPORTED: system-windows
|
||
|
|
||
|
# RUN: rm -rf %t && mkdir -p %t
|
||
|
# RUN: echo file1 > %t/1.txt
|
||
|
|
||
|
## No Permission:
|
||
|
# RUN: llvm-ar rc %t/permission.b %t/1.txt
|
||
|
# RUN: chmod 100 %t/permission.b
|
||
|
# RUN: not llvm-ar p %t/permission.b 2>&1 | \
|
||
|
# RUN: FileCheck %s --check-prefix=NO-PERMISSION -DARCHIVE=%t/permission.b
|
||
|
|
||
|
# NO-PERMISSION: error: unable to open '[[ARCHIVE]]': {{[pP]}}ermission denied
|