[llvm] r299088 - [yaml2obj] Enable and fix tests
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 09:35:02 PDT 2017
Author: cbieneman
Date: Thu Mar 30 11:35:02 2017
New Revision: 299088
URL: http://llvm.org/viewvc/llvm-project?rev=299088&view=rev
Log:
[yaml2obj] Enable and fix tests
Summary:
These tests were not being run because the yaml extension
wasn't be picked up by lit.
This change also fixes the tests which themselves were broken.
Patch By: Sam Clegg
Reviewers: beanz
Reviewed By: beanz
Subscribers: fhahn
Differential Revision: https://reviews.llvm.org/D31436
Added:
llvm/trunk/test/tools/yaml2obj/lit.local.cfg
Modified:
llvm/trunk/test/tools/yaml2obj/missing_document_tag.yaml
llvm/trunk/test/tools/yaml2obj/unsupported_document_tag.yaml
Added: llvm/trunk/test/tools/yaml2obj/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/yaml2obj/lit.local.cfg?rev=299088&view=auto
==============================================================================
--- llvm/trunk/test/tools/yaml2obj/lit.local.cfg (added)
+++ llvm/trunk/test/tools/yaml2obj/lit.local.cfg Thu Mar 30 11:35:02 2017
@@ -0,0 +1 @@
+config.suffixes = ['.yaml']
Modified: llvm/trunk/test/tools/yaml2obj/missing_document_tag.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/yaml2obj/missing_document_tag.yaml?rev=299088&r1=299087&r2=299088&view=diff
==============================================================================
--- llvm/trunk/test/tools/yaml2obj/missing_document_tag.yaml (original)
+++ llvm/trunk/test/tools/yaml2obj/missing_document_tag.yaml Thu Mar 30 11:35:02 2017
@@ -4,3 +4,6 @@
DummyData:
foo: 0
...
+
+# CHECK: YAML:4:1: error: YAML Object File missing document type tag!
+# CHECK: yaml2obj: Failed to parse YAML file!
Modified: llvm/trunk/test/tools/yaml2obj/unsupported_document_tag.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/yaml2obj/unsupported_document_tag.yaml?rev=299088&r1=299087&r2=299088&view=diff
==============================================================================
--- llvm/trunk/test/tools/yaml2obj/unsupported_document_tag.yaml (original)
+++ llvm/trunk/test/tools/yaml2obj/unsupported_document_tag.yaml Thu Mar 30 11:35:02 2017
@@ -5,4 +5,4 @@ DummyData:
foo: 0
...
-#check error: YAML Object File unsupported document type tag '!unsupported-tag'!
+# CHECK: error: YAML Object File unsupported document type tag '!unsupported-tag'!
More information about the llvm-commits
mailing list