mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #568 from Dmitry-Me/checkParsingErrorEarlier
Test parsing result as early as possible
This commit is contained in:
commit
3f169ac424
|
@ -1774,9 +1774,9 @@ int main( int argc, const char ** argv )
|
||||||
// an interesting test case.
|
// an interesting test case.
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
XMLError err = doc.Parse(xml);
|
XMLError err = doc.Parse(xml);
|
||||||
XMLElement* playlist = doc.FirstChildElement("playlist");
|
|
||||||
|
|
||||||
XMLTest("Crash bug parsing", err, XML_SUCCESS);
|
XMLTest("Crash bug parsing", err, XML_SUCCESS);
|
||||||
|
|
||||||
|
XMLElement* playlist = doc.FirstChildElement("playlist");
|
||||||
XMLTest("Crash bug parsing", true, playlist != 0);
|
XMLTest("Crash bug parsing", true, playlist != 0);
|
||||||
|
|
||||||
tinyxml2::XMLElement* entry = playlist->FirstChildElement("entry");
|
tinyxml2::XMLElement* entry = playlist->FirstChildElement("entry");
|
||||||
|
|
Loading…
Reference in New Issue