diff options
Diffstat (limited to 'xmlscript/test')
-rw-r--r-- | xmlscript/test/imexp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx index 45a76ffc15fa..100a3972101b 100644 --- a/xmlscript/test/imexp.cxx +++ b/xmlscript/test/imexp.cxx @@ -95,7 +95,7 @@ Reference< XComponentContext > createInitialComponentContext( catch( Exception& rExc ) { OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); - OSL_ENSURE( 0, aStr.getStr() ); + OSL_FAIL( aStr.getStr() ); } return xContext; @@ -178,7 +178,7 @@ void MyApp::Main() { if (GetCommandLineParamCount() < 2) { - OSL_ENSURE( 0, "usage: imexp inst_dir inputfile [outputfile]\n" ); + OSL_FAIL( "usage: imexp inst_dir inputfile [outputfile]\n" ); return; } @@ -226,12 +226,12 @@ void MyApp::Main() aStr += OString( " >>> " ); aStr += OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ); } - OSL_ENSURE( 0, aStr.getStr() ); + OSL_FAIL( aStr.getStr() ); } catch (uno::Exception & rExc) { OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); - OSL_ENSURE( 0, aStr.getStr() ); + OSL_FAIL( aStr.getStr() ); } Reference< lang::XComponent > xComp( xContext, UNO_QUERY ); |