Files
archived-llvm/test/tools/llvm-objcopy/ELF/binary-input-error.test
Alex Brachet d8baf47f54 [llvm-objcopy] Changed command line parsing errors
Summary: Tidied up errors during command line parsing to be more consistent with the rest of llvm-objcopy errors.

Reviewers: jhenderson, rupprecht, espindola, alexshap

Reviewed By: jhenderson, rupprecht

Subscribers: emaste, arichardson, MaskRay, llvm-commits, jakehehrlich

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62973

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363350 91177308-0d34-0410-b5e6-96231b3b80d8
2019-06-14 02:04:02 +00:00

11 lines
385 B
Plaintext

# RUN: echo abcd > %t.txt
# RUN: not llvm-objcopy -I binary %t.txt %t.o 2>&1 \
# RUN: | FileCheck %s --check-prefix=MISSING-BINARY-ARCH
# RUN: not llvm-objcopy -I binary -B xyz %t.txt %t.o 2>&1 \
# RUN: | FileCheck %s --check-prefix=BAD-BINARY-ARCH
# MISSING-BINARY-ARCH: specified binary input without specifiying an architecture
# BAD-BINARY-ARCH: invalid architecture: 'xyz'