mirror of https://github.com/AxioDL/tinyxml2.git
Cleanup stream mode tests
* use "out" subpath * check file was opened
This commit is contained in:
parent
c11a7c5ca0
commit
c0fad29082
|
@ -881,7 +881,8 @@ int main( int argc, const char ** argv )
|
||||||
// ---------- XMLPrinter stream mode ------
|
// ---------- 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);
|
XMLPrinter printer(printerfp);
|
||||||
printer.OpenElement("foo");
|
printer.OpenElement("foo");
|
||||||
printer.PushAttribute("attrib-text", "text");
|
printer.PushAttribute("attrib-text", "text");
|
||||||
|
@ -895,7 +896,7 @@ int main( int argc, const char ** argv )
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
doc.LoadFile("resources/printer.xml");
|
doc.LoadFile("resources/out/printer.xml");
|
||||||
XMLTest("XMLPrinter Stream mode: load", XML_SUCCESS, doc.ErrorID(), true);
|
XMLTest("XMLPrinter Stream mode: load", XML_SUCCESS, doc.ErrorID(), true);
|
||||||
|
|
||||||
const XMLDocument& cdoc = doc;
|
const XMLDocument& cdoc = doc;
|
||||||
|
|
Loading…
Reference in New Issue