diff options
Diffstat (limited to 'cppu/test/testcppu.cxx')
-rw-r--r-- | cppu/test/testcppu.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cppu/test/testcppu.cxx b/cppu/test/testcppu.cxx index 316ac1c7c825..17a90867916c 100644 --- a/cppu/test/testcppu.cxx +++ b/cppu/test/testcppu.cxx @@ -4,9 +4,9 @@ * * $RCSfile: testcppu.cxx,v $ * - * $Revision: 1.30 $ + * $Revision: 1.31 $ * - * last change: $Author: rt $ $Date: 2005-09-08 08:59:37 $ + * last change: $Author: rt $ $Date: 2006-03-06 10:17:12 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1149,6 +1149,13 @@ void testArray(void) */ int SAL_CALL main(int argc, char **argv) { + rtl::OUString const cppName( + RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME) ); + uno_Environment * pCppEnv = 0; + uno_getEnvironment( &pCppEnv, cppName.pData, 0 ); + uno_getEnvironment( &pCppEnv, cppName.pData, 0 ); + (*pCppEnv->release)( pCppEnv ); + try { typelib_setCacheSize( 200 ); Reference< registry::XSimpleRegistry > xRegistry( |