[PATCH] D87268: [llvm-install-name-tool] Add a test with multiple input files
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 22:05:17 PDT 2020
alexshap created this revision.
alexshap added reviewers: smeenai, jhenderson, MaskRay.
Herald added a reviewer: rupprecht.
Herald added a project: LLVM.
alexshap requested review of this revision.
Add a test which verifies the error-message when multiple input files are passed to llvm-install-name-tool.
Test plan: make check-all
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87268
Files:
llvm/test/tools/llvm-objcopy/tool-help-message.test
Index: llvm/test/tools/llvm-objcopy/tool-help-message.test
===================================================================
--- llvm/test/tools/llvm-objcopy/tool-help-message.test
+++ llvm/test/tools/llvm-objcopy/tool-help-message.test
@@ -18,6 +18,7 @@
# RUN: not llvm-install-name-tool -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
# RUN: not llvm-install-name-tool --abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
# RUN: not llvm-install-name-tool -add_rpath @executable 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
+# RUN: not llvm-install-name-tool -add_rpath @executable f1 f2 2>&1 | FileCheck %s --check-prefix=MULTIPLE-INPUT-FILES
# OBJCOPY-USAGE: USAGE: llvm-objcopy [options] input [output]
# OBJCOPY-USAGE: Pass @FILE as argument to read options from FILE.
@@ -30,3 +31,4 @@
# UNKNOWN-ARG: unknown argument '{{-+}}abcabc'
# NO-INPUT-FILES: no input file specified
+# MULTIPLE-INPUT-FILES: expects a single input file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87268.290404.patch
Type: text/x-patch
Size: 968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/a798fffd/attachment.bin>
More information about the llvm-commits
mailing list