sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit cd0b935d5512f557ff03c4a5e783e4317c9fd04d Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Apr 15 11:24:49 2014 +0200 Avoid undefined beahvior in test code Change-Id: I721785a56c9adb2781c4afe14ed2a9e7254acab8 diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 0dbb726..a3853cf 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -2912,6 +2912,8 @@ DECLARE_OOXMLEXPORT_TEST(testCitation,"FDO74775.docx") if (!pXmlDoc) return; xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc,"/w:document/w:body/w:sdt/w:sdtContent/w:p[1]/w:r[3]/w:instrText"); + CPPUNIT_ASSERT(pXmlNodes != 0); + CPPUNIT_ASSERT(pXmlNodes->nodeNr > 0); xmlNodePtr pXmlNode = pXmlNodes->nodeTab[0]; OUString contents = OUString::createFromAscii((const char*)((pXmlNode->children[0]).content)); CPPUNIT_ASSERT(contents.match(" CITATION [Kra06]")); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits