Test ErrorName() returns valid string after SetError()
diff --git a/xmltest.cpp b/xmltest.cpp
index 18e2491..b1b64e3 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1928,7 +1928,9 @@
const XMLError error = static_cast<XMLError>(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 );
}
}