From cb16ead042edb4e0b8efd16cdef167ae56367e1a Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 20 Jun 2017 14:23:08 +0100 Subject: [PATCH] Test Doctype marked SYSTEM but with no ID is rejected --- expat/tests/runtests.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 91a9cd6e..381b0648 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -6714,6 +6714,14 @@ START_TEST(test_short_doctype_2) } END_TEST +START_TEST(test_short_doctype_3) +{ + const char *text = ""; + expect_failure(text, XML_ERROR_SYNTAX, + "DOCTYPE without System ID not rejected"); +} +END_TEST + /* * Namespaces tests. */ @@ -12199,6 +12207,7 @@ make_suite(void) tcase_add_test(tc_basic, test_entity_public_utf16_le); tcase_add_test(tc_basic, test_short_doctype); tcase_add_test(tc_basic, test_short_doctype_2); + tcase_add_test(tc_basic, test_short_doctype_3); suite_add_tcase(s, tc_namespace); tcase_add_checked_fixture(tc_namespace, -- 2.49.0