diff options
Diffstat (limited to 'TAO/tests/RTCORBA/Client_Propagated/client.cpp')
-rw-r--r-- | TAO/tests/RTCORBA/Client_Propagated/client.cpp | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/TAO/tests/RTCORBA/Client_Propagated/client.cpp b/TAO/tests/RTCORBA/Client_Propagated/client.cpp index 58a48b7a744..f890ca903a4 100644 --- a/TAO/tests/RTCORBA/Client_Propagated/client.cpp +++ b/TAO/tests/RTCORBA/Client_Propagated/client.cpp @@ -49,25 +49,12 @@ main (int argc, char *argv[]) int min_priority = ACE_Sched_Params::priority_min (ACE_SCHED_OTHER); - if (max_priority > min_priority) + if ((max_priority + min_priority) / 2 + 2 > max_priority) { - if ((max_priority + min_priority) / 2 + 2 > max_priority) - { - ACE_DEBUG ((LM_DEBUG, - "Not enough priority levels on this platform" - "to run the test, aborting\n")); - return 0; - } - } - else - { - if ((max_priority + min_priority) / 2 + 2 > min_priority) - { - ACE_DEBUG ((LM_DEBUG, - "Not enough priority levels on this platform" - "to run the test, aborting\n")); - return 0; - } + ACE_DEBUG ((LM_DEBUG, + "Not enough priority levels on this platform" + "to run the test, aborting\n")); + return 0; } // Register the interceptors to check for the RTCORBA @@ -194,13 +181,6 @@ main (int argc, char *argv[]) server->shutdown (ACE_TRY_ENV); ACE_TRY_CHECK; } - ACE_CATCH (CORBA::DATA_CONVERSION, ex) - { - ACE_PRINT_EXCEPTION(ex, - "Most likely, this is due to the in-ability " - "to set the thread priority."); - return 1; - } ACE_CATCHANY { ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, |