From 3e6ef772728636f8cacb4f9a5ebc8e18fd8c17c9 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 30 Mar 2017 16:35:02 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299088 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/yaml2obj/lit.local.cfg | 1 + test/tools/yaml2obj/missing_document_tag.yaml | 3 +++ test/tools/yaml2obj/unsupported_document_tag.yaml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/tools/yaml2obj/lit.local.cfg diff --git a/test/tools/yaml2obj/lit.local.cfg b/test/tools/yaml2obj/lit.local.cfg new file mode 100644 index 00000000000..8169b9f95e1 --- /dev/null +++ b/test/tools/yaml2obj/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.yaml'] diff --git a/test/tools/yaml2obj/missing_document_tag.yaml b/test/tools/yaml2obj/missing_document_tag.yaml index 3cec172d580..8cfd9a16700 100644 --- a/test/tools/yaml2obj/missing_document_tag.yaml +++ b/test/tools/yaml2obj/missing_document_tag.yaml @@ -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! diff --git a/test/tools/yaml2obj/unsupported_document_tag.yaml b/test/tools/yaml2obj/unsupported_document_tag.yaml index e73d450a9bb..b25b08096cf 100644 --- a/test/tools/yaml2obj/unsupported_document_tag.yaml +++ b/test/tools/yaml2obj/unsupported_document_tag.yaml @@ -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'! -- 2.40.0