diff --git a/xmltest.cpp b/xmltest.cpp index 75c28e5..96cbf64 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1956,7 +1956,9 @@ int main( int argc, const char ** argv ) const XMLError error = static_cast(i); doc.SetError( error, 0, 0, 0 ); XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() ); - doc.ErrorName(); + const char* name = doc.ErrorName(); + XMLTest( "ErrorName() after SetError()", true, name != 0 ); + XMLTest( "ErrorName() after SetError()", true, strlen(name) > 0 ); } }