[yaml2obj] Enable and fix tests
authorChris Bieneman <beanz@apple.com>
Thu, 30 Mar 2017 16:35:02 +0000 (16:35 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 30 Mar 2017 16:35:02 +0000 (16:35 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299088 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/yaml2obj/lit.local.cfg [new file with mode: 0644]
test/tools/yaml2obj/missing_document_tag.yaml
test/tools/yaml2obj/unsupported_document_tag.yaml

diff --git a/test/tools/yaml2obj/lit.local.cfg b/test/tools/yaml2obj/lit.local.cfg
new file mode 100644 (file)
index 0000000..8169b9f
--- /dev/null
@@ -0,0 +1 @@
+config.suffixes = ['.yaml']
index 3cec172d580136eea3043bc2ab0372e8020e9c71..8cfd9a16700a30ab95ecac5014ac3f97ced8f172 100644 (file)
@@ -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!
index e73d450a9bb817a6deafbe65afef0360d1fdf3ab..b25b08096cfbd69c8d179dbef4dbf9cf07bdec48 100644 (file)
@@ -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'!