[llvm] [llvm-install-name-tool] Error on non-Mach-O binaries (PR #90351)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 00:51:22 PDT 2024


================
@@ -0,0 +1,26 @@
+## This test checks general llvm-install-name-tool behavior
+
+# RUN: yaml2obj %s -o %t
+
+## Passing a non-Mach-O binary
+# RUN: not llvm-install-name-tool -add_rpath foo %t 2>&1 | FileCheck %s --check-prefix=NON_MACH_O
----------------
jh7370 wrote:

I forget, does this invocation just normally replace `%t` inline, or is an output file created? If an output file could be created, it might be worth validating that the file doesn't exist afterwards (you should make sure to delete it beforehand, in case one is left over from a previous run).

https://github.com/llvm/llvm-project/pull/90351


More information about the llvm-commits mailing list