From e56686f1e57236d4b1c5fb3f7de99ddfbf2a016b Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 1 Feb 2017 20:21:14 -0800 Subject: tests: Remove redundant coverage test The only point was to try to test all paths where we can run out of memory while decoding something. It seems like it may be impossible to actually do this given that we can't run all paths as wchar_t size detection is done at runtime... --- tests/test_parse.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp index 882ba3a..efc3ca6 100644 --- a/tests/test_parse.cpp +++ b/tests/test_parse.cpp @@ -965,17 +965,6 @@ TEST(parse_out_of_memory_conversion) CHECK(!doc.first_child()); } -#ifdef PUGIXML_WCHAR_MODE -TEST(parse_out_of_memory_conversion_wchar) -{ - test_runner::_memory_fail_threshold = 1; - - xml_document doc; - CHECK_ALLOC_FAIL(CHECK(doc.load_buffer("", 7).status == status_out_of_memory)); - CHECK(!doc.first_child()); -} -#endif - TEST(parse_out_of_memory_allocator_state_sync) { const unsigned int count = 10000; -- cgit v1.2.3