Skip to content

Commit

Permalink
Add check for child nodes re #7617
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Sep 23, 2013
1 parent 7704157 commit b311cb2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class ConvertFullprofToXMLTest : public CxxTest::TestSuite
Poco::XML::Document* doc;
TS_ASSERT_THROWS_NOTHING(doc = pParser.parseString(xmlText));
TS_ASSERT(doc);
Poco::XML::Element* rootElem = doc->documentElement();
TS_ASSERT(rootElem->hasChildNodes());

//Clean up
Poco::File(inputFilename).remove();
Expand Down

0 comments on commit b311cb2

Please sign in to comment.