diff --git a/xmltest.cpp b/xmltest.cpp index 98ed094..be4c7b8 100755 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -2147,8 +2147,14 @@ int main( int argc, const char ** argv ) // successful loads should clear the error XMLDocument doc; XMLTest( "Should be no error initially", false, doc.Error() ); - doc.LoadFile( "resources/xmltest-5330.xml" ); - XMLTest( "parse errors occur - should fail", true, doc.Error() ); + doc.LoadFile( "resources/no-such-file.xml" ); + XMLTest( "No such file - should fail", true, doc.Error() ); + + doc.LoadFile( "resources/xmltest-5330.xml" ); + XMLTest( "parse errors occur - should fail", true, doc.Error() ); + + doc.LoadFile( "resources/dream.xml" ); + XMLTest( "Error should be cleared", false, doc.Error() ); doc.LoadFile( "resources/dream.xml" ); XMLTest( "Error should be cleared", false, doc.Error() );