]> granicus.if.org Git - llvm/commitdiff
Fixes failing test cases on Windows for rL368119
authorAlex Brachet <alexbrachetmialot@gmail.com>
Wed, 7 Aug 2019 03:18:23 +0000 (03:18 +0000)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Wed, 7 Aug 2019 03:18:23 +0000 (03:18 +0000)
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

test/tools/yaml2obj/empty-or-invalid-doc.yaml
test/tools/yaml2obj/invalid-docnum.test
test/tools/yaml2obj/missing_document_tag.yaml
test/tools/yaml2obj/multi-doc.test
test/tools/yaml2obj/section-size-content.yaml

index de79f4162e3f3463f7ffe079737d1fa07dbc59c3..9f451cab5a5ac9f7bdce278c1efce613293717b9 100644 (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!
index 0f796024c62d3bfa23be7eae0778773ca79ee255..0a533468eda5e0733865dab20e2d47ec089802ff 100644 (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:
index d41e7991bb89994a4f149318c1d1f1ec5b97029d..09cdc4bff6567b59e49d813ed02485b8cd5a3719 100644 (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!
index 9d3762b0291b5eb93ab0c3f6c9499439d8c1d2a2..0b794e1006760e41c1a97b656797c2be24a8c003 100644 (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
index b57526abe7153a4bbb491081e6140cff4ba0a018..5b231a8362ab1c08757565e54754c56067497c04 100644 (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!