summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r--tests/test_document.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index 362b469..ff5c4d6 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -2,6 +2,10 @@
#include <fstream>
+#ifdef _MSC_VER
+#pragma warning(disable: 4996)
+#endif
+
TEST(document_create)
{
pugi::xml_document doc;
@@ -22,7 +26,7 @@ TEST(document_load_stream_error)
{
pugi::xml_document doc;
- std::ifstream fs1("");
+ std::ifstream fs1("filedoesnotexist");
CHECK(doc.load(fs1).status == status_io_error);
std::ifstream fs2("con");
@@ -70,7 +74,7 @@ TEST(document_load_file_error)
{
pugi::xml_document doc;
- CHECK(doc.load_file("").status == status_file_not_found);
+ CHECK(doc.load_file("filedoesnotexist").status == status_file_not_found);
CHECK(doc.load_file("con").status == status_io_error);
CHECK(doc.load_file("nul").status == status_io_error);