From 1c3c9b2bd550c2122f3b1e2750c862aae7a7c273 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 7 Feb 2017 17:23:11 +0000 Subject: Further test coverage of XML_GetBuffer --- expat/tests/runtests.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 4 deletions(-) (limited to 'expat') diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index eccc821e..53f6d936 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -17,6 +17,7 @@ #ifndef __cplusplus # include #endif +#include #include "expat.h" #include "chardata.h" @@ -1957,6 +1958,55 @@ START_TEST(test_empty_parse) } END_TEST +/* Test odd corners of the XML_GetBuffer interface */ +START_TEST(test_get_buffer) +{ + const char *text = + "\n