[llvm] [llvm-objcopy] Fix prints wrong path when section output path doesn't exist (PR #125345)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 00:52:09 PST 2025
================
@@ -64,3 +64,9 @@ ProgramHeaders:
# RUN: not llvm-objcopy --dump-section .text= %t /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2
# ERR2: error: bad format for --dump-section, expected section=file
+
+# RUN: not llvm-objcopy --dump-section .text=not_exists/text-section %t 2>&1 \
+# RUN: | FileCheck -DMSG=%errc_ENOENT %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
+# NO-SUCH-PATH: error: 'not_exists/text-section': [[MSG]]
+
----------------
jh7370 wrote:
As @MaskRay already requested, please delete extra blank lines at the end of the file. The file should end with exactly one `\n` character and no more.
https://github.com/llvm/llvm-project/pull/125345
More information about the llvm-commits
mailing list