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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368120
91177308-0d34-0410-b5e6-
96231b3b80d8
# 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!
## 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:
...
# 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!
# 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
# 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!