From 903db8682a5f14b52adec996584c70ea072619ea Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 23 Oct 2014 07:41:07 +0000 Subject: tests: Add more tests for better coverage More tests for out-of-memory and other edge conditions git-svn-id: https://pugixml.googlecode.com/svn/trunk@1075 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_parse_doctype.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test_parse_doctype.cpp') diff --git a/tests/test_parse_doctype.cpp b/tests/test_parse_doctype.cpp index 8976890..f8619fd 100644 --- a/tests/test_parse_doctype.cpp +++ b/tests/test_parse_doctype.cpp @@ -313,3 +313,12 @@ TEST(parse_doctype_error_toplevel) CHECK(doc.load(STR("")).status == status_bad_doctype); CHECK(doc.load(STR(""), parse_doctype).status == status_bad_doctype); } + +TEST(parse_doctype_error_ignore) +{ + xml_document doc; + CHECK(doc.load(STR("