From adc6fe00e3ef3cca5bbd49a4633181856bf111df Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 12 Mar 2011 12:10:42 +0100 Subject: Move OSL_ENSURE(0,...) to OSL_FAIL(...) --- io/test/testconnection.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'io/test') diff --git a/io/test/testconnection.cxx b/io/test/testconnection.cxx index dac0bd2cc127..7cedd87487e5 100644 --- a/io/test/testconnection.cxx +++ b/io/test/testconnection.cxx @@ -163,7 +163,7 @@ void testConnection( const OUString &sConnectionDescription , { Sequence < sal_Int8 > seq(10); r->write( seq ); - OSL_ENSURE( 0 , "expected exception not thrown" ); + OSL_FAIL( "expected exception not thrown" ); } catch ( IOException & ) { @@ -171,7 +171,7 @@ void testConnection( const OUString &sConnectionDescription , } catch ( ... ) { - OSL_ENSURE( 0 , "wrong exception was thrown" ); + OSL_FAIL( "wrong exception was thrown" ); } thread.join(); @@ -231,7 +231,7 @@ int __cdecl main( int argc, char * argv[] ) try { rAcceptor->accept( OUString() ); - OSL_ENSURE( 0 , "empty connection string" ); + OSL_FAIL( "empty connection string" ); } catch( IllegalArgumentException & ) { @@ -239,13 +239,13 @@ int __cdecl main( int argc, char * argv[] ) } catch( ... ) { - OSL_ENSURE( 0, "unexpected akexception with empty connection string" ); + OSL_FAIL( "unexpected akexception with empty connection string" ); } try { rConnector->connect( OUString() ); - OSL_ENSURE( 0 , "empty connection string" ); + OSL_FAIL( "empty connection string" ); } catch( ConnectionSetupException & ) { @@ -253,7 +253,7 @@ int __cdecl main( int argc, char * argv[] ) } catch( ... ) { - OSL_ENSURE( 0, "unexpected exception with empty connection string" ); + OSL_FAIL( "unexpected exception with empty connection string" ); } @@ -265,7 +265,7 @@ int __cdecl main( int argc, char * argv[] ) try { rAcceptor->accept( OUString(RTL_CONSTASCII_USTRINGPARAM("socket,host=localhost,port=2001")) ); - OSL_ENSURE( 0 , "already existing exception expected" ); + OSL_FAIL( "already existing exception expected" ); } catch( AlreadyAcceptingException & e) { @@ -273,7 +273,7 @@ int __cdecl main( int argc, char * argv[] ) } catch( ... ) { - OSL_ENSURE( 0, "unknown exception, already existing existing expected" ); + OSL_FAIL( "unknown exception, already existing existing expected" ); } rAcceptor->stopAccepting(); -- cgit