summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:10:42 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:48 +0100
commitadc6fe00e3ef3cca5bbd49a4633181856bf111df (patch)
treeea50caa8979aa23d77f912bee478d968ccf18232 /io
parent629b05ac304a47f70180d044ac5db18a9ecfc9cc (diff)
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
Diffstat (limited to 'io')
-rw-r--r--io/test/testconnection.cxx16
1 files changed, 8 insertions, 8 deletions
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();