diff options
Diffstat (limited to 'sax')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index 457f5f10f5cc..915f26ee4e1d 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -432,18 +432,24 @@ void XMLImportTest::testMissingNamespaceDeclaration() for (sal_uInt16 i = 0; i < sizeof( fileNames ) / sizeof( OUString ); i++) { - InputSource source; - source.sSystemId = "internal"; + try + { + InputSource source; + source.sSystemId = "internal"; - source.aInputStream = createStreamFromFile( m_sDirPath + fileNames[i] ); - m_xParser->parseStream(source); - const OUString rParserStr = m_xDocumentHandler->getString(); + source.aInputStream = createStreamFromFile( m_sDirPath + fileNames[i] ); + m_xParser->parseStream(source); + const OUString rParserStr = m_xDocumentHandler->getString(); - source.aInputStream = createStreamFromFile( m_sDirPath + fileNames[i] ); - m_xLegacyFastParser->parseStream(source); - const OUString rLegacyFastParserStr = m_xDocumentHandler->getString(); + source.aInputStream = createStreamFromFile( m_sDirPath + fileNames[i] ); + m_xLegacyFastParser->parseStream(source); + const OUString rLegacyFastParserStr = m_xDocumentHandler->getString(); - CPPUNIT_ASSERT_EQUAL( rParserStr, rLegacyFastParserStr ); + CPPUNIT_ASSERT_EQUAL( rParserStr, rLegacyFastParserStr ); + } + catch( SAXException ) + { + } } } |