Skip to content

Commit b2c79e3

Browse files
committed
Address code review comments
1 parent be3caee commit b2c79e3

File tree

6 files changed

+14
-130
lines changed

6 files changed

+14
-130
lines changed

llvm/test/tools/llvm-objcopy/ELF/dump-section-directory-not-exists.test

Lines changed: 0 additions & 37 deletions
This file was deleted.

llvm/test/tools/llvm-objcopy/ELF/dump-section.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ ProgramHeaders:
6464
# RUN: not llvm-objcopy --dump-section .text= %t /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2
6565

6666
# ERR2: error: bad format for --dump-section, expected section=file
67+
68+
# RUN: not llvm-objcopy --dump-section .text=not_exists/text-section %t 2>&1 \
69+
# RUN: | FileCheck -DMSG=%errc_ENOENT %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
70+
# NO-SUCH-PATH: error: 'not_exists/text-section': [[MSG]]
71+
72+

llvm/test/tools/llvm-objcopy/MachO/dump-section-directory-not-exists.test

Lines changed: 0 additions & 68 deletions
This file was deleted.

llvm/test/tools/llvm-objcopy/MachO/dump-section.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
# RUN: | FileCheck %s -DINPUT=%t --check-prefix=NO-SUCH-SECTION
2222
# NO-SUCH-SECTION: error: '[[INPUT]]': section '__TEXT,__foo' not found
2323

24+
# RUN: not llvm-objcopy --dump-section __TEXT,__text=not_exists/text-section %t 2>&1 \
25+
# RUN: | FileCheck -DMSG=%errc_ENOENT %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
26+
# NO-SUCH-PATH: error: 'not_exists/text-section': [[MSG]]
27+
2428
--- !mach-o
2529
FileHeader:
2630
magic: 0xFEEDFACF

llvm/test/tools/llvm-objcopy/wasm/dump-section-directory-not-exists.test

Lines changed: 0 additions & 25 deletions
This file was deleted.

llvm/test/tools/llvm-objcopy/wasm/dump-section.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
# REMOVED-NOT: producers
3030

31+
# RUN: not llvm-objcopy --dump-section producers=not_exists/text-section %t 2>&1 \
32+
# RUN: | FileCheck -DMSG=%errc_ENOENT %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
33+
# NO-SUCH-PATH: error: 'not_exists/text-section': [[MSG]]
34+
3135
--- !WASM
3236
FileHeader:
3337
Version: 0x00000001

0 commit comments

Comments
 (0)