dinghao188 3 лет назад
Родитель
Сommit
3e94e4a047
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      xmltest.cpp

+ 8 - 2
xmltest.cpp

@@ -2147,8 +2147,14 @@ int main( int argc, const char ** argv )
 		// successful loads should clear the error
 		// successful loads should clear the error
 		XMLDocument doc;
 		XMLDocument doc;
 		XMLTest( "Should be no error initially", false, doc.Error() );
 		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" );
 		doc.LoadFile( "resources/dream.xml" );
 		XMLTest( "Error should be cleared", false, doc.Error() );
 		XMLTest( "Error should be cleared", false, doc.Error() );