Fixes failing test cases on Windows for rL368119

Windows test cases were failing because the executable is called yaml2obj.exe
not just yaml2obj. I removed FileCheck patterns including yaml2obj so they
start matching at the error message not the program name.

llvm-svn: 368120
This commit is contained in:
Alex Brachet 2019-08-07 03:18:23 +00:00
parent c22d9666fc
commit f5589508d3
5 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# RUN: echo -n "" | not yaml2obj 2>&1 | FileCheck %s
# RUN: echo " " | not yaml2obj 2>&1 | FileCheck %s
# RUN: echo " " | not yaml2obj 2>&1 | FileCheck %s
# CHECK: yaml2obj: error: Unknown document type!
# CHECK: error: Unknown document type!
# RUN: echo -e -n "\xff" | not yaml2obj 2>&1 | FileCheck %s --check-prefix=INVALID
# INVALID: yaml2obj: error: Failed to parse YAML input!
# INVALID: error: Failed to parse YAML input!

View File

@ -2,10 +2,10 @@
## greater than the number of YAML inputs in the file.
# RUN: not yaml2obj %s --docnum=3 2>&1 | FileCheck %s
# CHECK: yaml2obj: error: Cannot find the 3rd document
# CHECK: error: Cannot find the 3rd document
# RUN: not yaml2obj %s --docnum=76768677 2>&1 | FileCheck %s --check-prefix=TWO
# TWO: yaml2obj: error: Cannot find the 76768677th document
# TWO: error: Cannot find the 76768677th document
--- !ELF
FileHeader:

View File

@ -6,4 +6,4 @@ DummyData:
...
# CHECK: YAML:4:1: error: YAML Object File missing document type tag!
# CHECK: yaml2obj: error: Failed to parse YAML input!
# CHECK: error: Failed to parse YAML input!

View File

@ -16,7 +16,7 @@
# DOC2: Name: _sym2
# DOC3: Name: _sym3
# DOC4: Name: _sym4
# DOC5: yaml2obj: error: Cannot find the 5th document
# DOC5: error: Cannot find the 5th document
--- !ELF
FileHeader: !FileHeader

View File

@ -175,4 +175,4 @@ Sections:
# ERR2: error: Section size must be greater than or equal to the content size
# ERR2-NEXT: - Name: .data
# ERR2-NEXT: ^
# ERR2-NEXT: yaml2obj: error: Failed to parse YAML input!
# ERR2-NEXT: error: Failed to parse YAML input!