mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
aadb0afb4a
It updates two error messages under `performOperation` in the file llvm-ar.cpp. Furthermore, it also updates tests that print out these error messages: `llvm/test/Object/ar-create.test` and `llvm/test/tools/llvm-ar/print.test`. Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D80846
18 lines
630 B
Plaintext
18 lines
630 B
Plaintext
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
|