Skip to content

Commit 7fb033f

Browse files
committed
Don't check the OS-dependent message
1 parent d1bc2ee commit 7fb033f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
# RUN: not llvm-objcopy --dump-section .text=not_exists/text-section %t 2>&1 \
66
# RUN: | FileCheck %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
7-
# NO-SUCH-PATH: error: 'not_exists/text-section': No such file or directory
7+
# Don't check the OS-dependent message "No such file or directory".
8+
# NO-SUCH-PATH: error: 'not_exists/text-section':
89

910
!ELF
1011
FileHeader:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
# RUN: not llvm-objcopy --dump-section __TEXT,__text=not_exists/text-section %t 2>&1 \
66
# RUN: | FileCheck %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
7-
# NO-SUCH-PATH: error: 'not_exists/text-section': No such file or directory
7+
# Don't check the OS-dependent message "No such file or directory".
8+
# NO-SUCH-PATH: error: 'not_exists/text-section':
89

910
--- !mach-o
1011
FileHeader:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
# RUN: not llvm-objcopy --dump-section producers=not_exists/text-section %t 2>&1 \
66
# RUN: | FileCheck %s -DINPUT=%t --check-prefix=NO-SUCH-PATH
7-
# NO-SUCH-PATH: error: 'not_exists/text-section': No such file or directory
7+
# Don't check the OS-dependent message "No such file or directory".
8+
# NO-SUCH-PATH: error: 'not_exists/text-section':
89

910
--- !WASM
1011
FileHeader:

0 commit comments

Comments
 (0)