summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2002-03-21 15:38:41 +0000
committerJörg Budischewski <jbu@openoffice.org>2002-03-21 15:38:41 +0000
commit19ac065b717cd11229e9216f52f0240fd044f942 (patch)
tree30b5dc92aa9d29dfa100d1b8ee976cd5b962e7c3 /bridges
parentc2b0cfcca63cdaa9f0b1bfa874e2f444d7c963a5 (diff)
#98036# test now tests for DisposedExceptions
Diffstat (limited to 'bridges')
-rw-r--r--bridges/test/testclient.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/bridges/test/testclient.cxx b/bridges/test/testclient.cxx
index 99fd3a616..2330a3fbc 100644
--- a/bridges/test/testclient.cxx
+++ b/bridges/test/testclient.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: testclient.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jbu $ $Date: 2001-03-16 09:42:20 $
+ * last change: $Author: jbu $ $Date: 2002-03-21 16:38:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,7 @@
#include <com/sun/star/bridge/XBridgeFactory.hpp>
#include <com/sun/star/lang/XComponent.hpp>
+#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/XMain.hpp>
#include <com/sun/star/test/performance/XPerformanceTest.hpp>
@@ -271,6 +272,11 @@ void main( int argc, char *argv[] )
}
}
+ catch( DisposedException & e )
+ {
+ OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );
+ printf( "A remote object reference became invalid\n%s\n" , o.pData->buffer );
+ }
catch( Exception &e )
{
OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );