message: tests: Add even more stream coverage tests
  Apparently only narrow character streams had out of memory coverage -
  fix that and also split this into a separate test.
diff: @@ -109,12 +109,26 @@ TEST(document_load_stream_error)
  std::ifstream fs("filedoesnotexist");
  CHECK(doc.load(fs).status == status_io_error);
  +}
  +
  +TEST(document_load_stream_out_of_memory)
  +{
  + pugi::xml_document doc;
  std::istringstream iss("<node/>");
  test_runner::_memory_fail_threshold = 1;
  CHECK_ALLOC_FAIL(CHECK(doc.load(iss).status == status_out_of_memory));
  }
  +TEST(document_load_stream_wide_out_of_memory)
  +{
  + pugi::xml_document doc;
  +
  + std::basic_istringstream<wchar_t> iss(L"<node/>");
  + test_runner::_memory_fail_threshold = 1;
  + CHECK_ALLOC_FAIL(CHECK(doc.load(iss).status == status_out_of_memory));
  +}
  +
  TEST(document_load_stream_empty)
  {
  std::istringstream iss;
  