Summary: when run "llvm-ar cr" on AIX OS , it created a gnu archive, it is not desirable in aix OS. instead of creating a gnu archive, the patch will print a unsupport message for llvm-ar big archive write operation in AIX OS. after implement the big archive operation, I will revert the XFAIL: AIX " and "--format=gnu" test cases in the patch. Reviewer : James Henderson, Jinsong Ji Differential Revision: https://reviews.llvm.org/D122746
16 lines
498 B
Plaintext
16 lines
498 B
Plaintext
# XFAIL: system-aix
|
|
## 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 -DMSG=%errc_EACCES
|
|
|
|
# NO-PERMISSION: error: unable to open '[[ARCHIVE]]': [[MSG]]
|