summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/binary-input-error.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/binary-input-error.test')
-rw-r--r--llvm/test/tools/llvm-objcopy/binary-input-error.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/binary-input-error.test b/llvm/test/tools/llvm-objcopy/binary-input-error.test
new file mode 100644
index 00000000000..820e569ad7b
--- /dev/null
+++ b/llvm/test/tools/llvm-objcopy/binary-input-error.test
@@ -0,0 +1,10 @@
+# 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'.
OpenPOWER on IntegriCloud