diff options
Diffstat (limited to 'cpp/test/include/TestCommon.h')
-rw-r--r-- | cpp/test/include/TestCommon.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/cpp/test/include/TestCommon.h b/cpp/test/include/TestCommon.h index f84c476bbeb..8a04a9fc081 100644 --- a/cpp/test/include/TestCommon.h +++ b/cpp/test/include/TestCommon.h @@ -186,22 +186,18 @@ inline testFailed(const char* expr, const char* file, unsigned int line) ICE_DECLSPEC_EXPORT void dllTestShutdown(); \ void dllTestShutdown() \ { \ - try \ - { \ - if(communicatorInstance) \ - { \ - communicatorInstance->destroy(); \ - } \ - } \ - catch(const Ice::LocalException&) \ + if(communicatorInstance) \ { \ + communicatorInstance->destroy(); \ } \ } \ ICE_DECLSPEC_EXPORT int dllMain(int, char**, Test::MainHelper*); \ int dllMain(int argc, char** argv, Test::MainHelper* helper) \ { \ Test::MainHelperInit init(helper, name, helper->redirect()); \ - return Test::mainEntryPoint(argc, argv); \ + int status = Test::mainEntryPoint(argc, argv); \ + communicatorInstance = ICE_NULLPTR; \ + return status; \ } \ } |