Test NOTATION marked SYSTEM but with no ID

This commit is contained in:
Rhodri James 2017-06-20 15:08:54 +01:00 committed by Sebastian Pipping
parent 9940f71578
commit 17243b79c3

View File

@ -6779,6 +6779,18 @@ START_TEST(test_bad_entity_4)
}
END_TEST
START_TEST(test_bad_notation)
{
const char *text =
"<!DOCTYPE doc [\n"
" <!NOTATION n SYSTEM>\n"
"]>\n"
"<doc/>";
expect_failure(text, XML_ERROR_SYNTAX,
"Notation without System ID is not rejected");
}
END_TEST
/*
* Namespaces tests.
*/
@ -12270,6 +12282,7 @@ make_suite(void)
tcase_add_test(tc_basic, test_bad_entity_2);
tcase_add_test(tc_basic, test_bad_entity_3);
tcase_add_test(tc_basic, test_bad_entity_4);
tcase_add_test(tc_basic, test_bad_notation);
suite_add_tcase(s, tc_namespace);
tcase_add_checked_fixture(tc_namespace,