summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2241_Regression/Hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2241_Regression/Hello.cpp')
-rw-r--r--TAO/tests/Bug_2241_Regression/Hello.cpp38
1 files changed, 2 insertions, 36 deletions
diff --git a/TAO/tests/Bug_2241_Regression/Hello.cpp b/TAO/tests/Bug_2241_Regression/Hello.cpp
index cabcd9145d9..fa28f2a6135 100644
--- a/TAO/tests/Bug_2241_Regression/Hello.cpp
+++ b/TAO/tests/Bug_2241_Regression/Hello.cpp
@@ -16,42 +16,8 @@
char *
Hello::get_string (void)
{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Upcall in process ..\n"));
-
- // Use portable thread IDs
- ACE_Thread_ID self_ID;
- ACE_Thread_ID this_ID;
- this_ID.id(this->thr_id_);
-
- if (self_ID == this_ID)
- {
- if (this->orb_->orb_core ()->optimize_collocation_objects () &&
- this->orb_->orb_core ()->use_global_collocation ())
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: A remote call has been made "
- " exiting ..\n"));
- ACE_OS::abort ();
- }
- else if (this->orb_->orb_core ()->optimize_collocation_objects () &&
- this->orb_->orb_core ()->use_global_collocation () == 0)
- {
- TAO::ORB_Table * const orb_table =
- TAO::ORB_Table::instance ();
-
- TAO_ORB_Core_Auto_Ptr tmp (orb_table->find ("server_orb"));
- if (tmp.get () == 0)
- {
- // We are running on a single ORB and this is an error.
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: A remote call has been made "
- " with a single ORB "
- " exiting ..\n"));
- ACE_OS::abort ();
- }
- }
- }
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) ERROR: Unexpected Upcall in process ..\n"));
return CORBA::string_dup ("Hello there!");
}