From 9216c82cfdeba41a35314f0315a5b61b42e82c1c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 28 Oct 2009 20:08:19 +0000 Subject: tests: Fixed MSVC warnings/errors git-svn-id: http://pugixml.googlecode.com/svn/trunk@185 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_document.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/test_document.cpp') 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 +#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); -- cgit v1.2.3