diff options
author | iliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-04-03 04:54:17 +0000 |
---|---|---|
committer | iliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-04-03 04:54:17 +0000 |
commit | 4692099df3438d06cdad242a8d2792a1446c1729 (patch) | |
tree | 63a7064f1f275a02ec92ba6ffb37b3e7d18b56ad | |
parent | 38c7a81666eeabc6ea7db1cdc8cf9ff0e3517b82 (diff) | |
download | ATCD-4692099df3438d06cdad242a8d2792a1446c1729.tar.gz |
Merged revisions 81222 via svnmerge from
https://svn.dre.vanderbilt.edu/DOC/Middleware/trunk/TAO
........
r81222 | mesnier_p | 2008-04-02 20:21:01 -0500 (Wed, 02 Apr 2008) | 1 line
`head -1 ChangeLog`
........
-rw-r--r-- | TAO/ChangeLog | 8 | ||||
-rw-r--r-- | TAO/tests/DSI_Gateway/client.cpp | 19 |
2 files changed, 22 insertions, 5 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 3b27b81a3d4..8db86ffebab 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,11 @@ +Thu Apr 3 01:18:45 UTC 2008 Phil Mesnier <mesnier_p@ociweb.com> + + * tests/DSI_Gateway/client.cpp: + + Reworded exception handlers to avoid having the nightly build + scoreboard detect expected exceptions as errors. This is the + same error that was documented in bug 2879. + Wed Apr 2 12:13:50 UTC 2008 Phil Mesnier <mesnier_p@ociweb.com> * tests/DSI_AMI_Gateway/client.cpp: diff --git a/TAO/tests/DSI_Gateway/client.cpp b/TAO/tests/DSI_Gateway/client.cpp index 4aa2aebab3f..ac36e877aef 100644 --- a/TAO/tests/DSI_Gateway/client.cpp +++ b/TAO/tests/DSI_Gateway/client.cpp @@ -161,7 +161,12 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) } catch (const test_exception& ex) { - ex._tao_print_exception ("Client: exception caught - "); + if (test_user_exception == 1) + ACE_DEBUG ((LM_DEBUG, + "Client: caught expected user exception: %s\n", + ex._name())); + else + ex._tao_print_exception ("Client: exception caught - "); ACE_DEBUG ((LM_DEBUG, "error code: %d\n" @@ -171,13 +176,17 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) ex.error_message.in (), ex.status_message.in ())); - return 0; + return test_user_exception == 1 ? 0 : 1; } catch (const CORBA::NO_PERMISSION& ex) { - ex._tao_print_exception ("Client: exception caught - "); - - return 0; + if (test_system_exception == 1) + ACE_DEBUG ((LM_DEBUG, + "Client: caught expected system exception: %s\n", + ex._name())); + else + ex._tao_print_exception ("Client: exception caught - "); + return test_system_exception == 1 ? 0 : 1; } catch (const CORBA::Exception& ex) { |