diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-09 13:07:51 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-09 13:07:51 +0100 |
commit | 37cd3f03113baabb35ede217daa002a3d794ec10 (patch) | |
tree | 5152da9096a52ee4cf3ed853afcb5d2a7605a113 /TAO/tests | |
parent | 6f91193f0b537d437645ae9e10823a519f547888 (diff) | |
download | ATCD-37cd3f03113baabb35ede217daa002a3d794ec10.tar.gz |
Test more operations
* TAO/tao/PI_Server/ServerRequestInfo.cpp:
* TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp:
Diffstat (limited to 'TAO/tests')
-rw-r--r-- | TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp | 57 |
1 files changed, 55 insertions, 2 deletions
diff --git a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp index e791b4091d0..543c352abf8 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp @@ -63,6 +63,42 @@ Echo_Server_Request_Interceptor::receive_request_service_contexts ( ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR, no exception when calling target_is_a from receive_request_service_contexts\n")); } + + catched_exception = false; + try + { + PortableInterceptor::ReplyStatus tmdi = ri->reply_status (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling reply_status from receive_request_service_contexts\n")); + } + + catched_exception = false; + try + { + Dynamic::ParameterList_var paramlist = ri->arguments (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling arguments from receive_request_service_contexts\n")); + } } void @@ -96,8 +132,7 @@ Echo_Server_Request_Interceptor::receive_request ( if (std::strcmp (op.in (), "normal") == 0) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + Dynamic::ParameterList_var paramlist = ri->arguments (); CORBA::Long param; CORBA::ULong i = 0; // index -- explicitly used to avoid @@ -125,6 +160,24 @@ Echo_Server_Request_Interceptor::receive_request ( ACE_DEBUG ((LM_DEBUG, "Target most derived interface: %C\n", tmdi.in ())); + + catched_exception = false; + try + { + PortableInterceptor::ReplyStatus tmdi = ri->reply_status (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling reply_status from receive_request\n")); + } } void |