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
19 lines
648 B
Plaintext
19 lines
648 B
Plaintext
XFAIL: system-aix
|
|
Test which operations create an archive and which don't.
|
|
|
|
RUN: touch %t
|
|
RUN: rm -f %t.foo.a
|
|
RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
|
|
RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
|
RUN: rm -f %t.foo.a
|
|
RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
|
RUN: rm -f %t.foo.a
|
|
|
|
CHECK: llvm-ar{{(.exe|.EXE)?}}: error: unable to load '{{[^']+}}.foo.a':
|
|
CREATE: creating {{.*}}.foo.a
|