[llvm] [llvm-objcopy] Fix prints wrong path when section output path doesn't exist (PR #125345)
Amr Hesham via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 10:09:02 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]]
+
----------------
AmrDeveloper wrote:
Thank you, updated it
https://github.com/llvm/llvm-project/pull/125345
More information about the llvm-commits
mailing list