From c0fad2908275cb26759e8df1e805d2eeb93a2e1a Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 9 Aug 2017 19:05:42 +0300 Subject: [PATCH] Cleanup stream mode tests * use "out" subpath * check file was opened --- xmltest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xmltest.cpp b/xmltest.cpp index af0fd7c..f5a129f 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -881,7 +881,8 @@ int main( int argc, const char ** argv ) // ---------- XMLPrinter stream mode ------ { { - FILE* printerfp = fopen("resources/printer.xml", "w"); + FILE* printerfp = fopen("resources/out/printer.xml", "w"); + XMLTest("Open printer.xml", true, printerfp != 0); XMLPrinter printer(printerfp); printer.OpenElement("foo"); printer.PushAttribute("attrib-text", "text"); @@ -895,7 +896,7 @@ int main( int argc, const char ** argv ) } { XMLDocument doc; - doc.LoadFile("resources/printer.xml"); + doc.LoadFile("resources/out/printer.xml"); XMLTest("XMLPrinter Stream mode: load", XML_SUCCESS, doc.ErrorID(), true); const XMLDocument& cdoc = doc;