Переглянути джерело

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368120 91177308-0d34-0410-b5e6-96231b3b80d8
Alex Brachet 6 роки тому
батько
коміт
642aa224dd

+ 2 - 2
test/tools/yaml2obj/empty-or-invalid-doc.yaml

@@ -2,7 +2,7 @@
 # RUN: echo -n "" | not yaml2obj 2>&1 | FileCheck %s
 # 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
 # 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
 # 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!

+ 2 - 2
test/tools/yaml2obj/invalid-docnum.test

@@ -2,10 +2,10 @@
 ## greater than the number of YAML inputs in the file.
 ## greater than the number of YAML inputs in the file.
 
 
 # RUN: not yaml2obj %s --docnum=3 2>&1 | FileCheck %s
 # 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
 # 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
 --- !ELF
 FileHeader:
 FileHeader:

+ 1 - 1
test/tools/yaml2obj/missing_document_tag.yaml

@@ -6,4 +6,4 @@ DummyData:
 ...
 ...
 
 
 # CHECK: YAML:4:1: error: YAML Object File missing document type tag!
 # 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!

+ 1 - 1
test/tools/yaml2obj/multi-doc.test

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

+ 1 - 1
test/tools/yaml2obj/section-size-content.yaml

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