summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-02-01 20:21:14 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-02-01 20:21:14 -0800
commite56686f1e57236d4b1c5fb3f7de99ddfbf2a016b (patch)
tree8ad1a1b8deebf3aef181b7ea5a520a9966d82ed8 /tests
parent1a3e92a7cc80a719efd988f14860a1aa9692d584 (diff)
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...
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.cpp11
1 files changed, 0 insertions, 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("<foo />", 7).status == status_out_of_memory));
- CHECK(!doc.first_child());
-}
-#endif
-
TEST(parse_out_of_memory_allocator_state_sync)
{
const unsigned int count = 10000;