summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2008-04-02 12:16:40 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2008-04-02 12:16:40 +0000
commitab390dce6cf87b084b5895da4825c84e624c14d6 (patch)
tree3112c365753849d3bcad8f91e0b8f55176fe8c69
parent4bdaba2b7bfa9e2a35037b90ccc3da1045316741 (diff)
downloadATCD-ab390dce6cf87b084b5895da4825c84e624c14d6.tar.gz
`head -1 ChangeLog`
-rw-r--r--TAO/ChangeLog8
-rw-r--r--TAO/tests/DSI_AMI_Gateway/client.cpp18
2 files changed, 22 insertions, 4 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 9fe775d3706..3b27b81a3d4 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,11 @@
+Wed Apr 2 12:13:50 UTC 2008 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tests/DSI_AMI_Gateway/client.cpp:
+
+ Reworded exception handlers to avoid having the nightly build
+ scoreboard detect expected exceptions as errors. This resolves
+ bug 2879.
+
Wed Apr 2 11:47:45 UTC 2008 Vladimir Zykov <vladimir.zykov@prismtech.com>
* tests/Collocated_Forwarding/Server_ORBInitializer.h:
diff --git a/TAO/tests/DSI_AMI_Gateway/client.cpp b/TAO/tests/DSI_AMI_Gateway/client.cpp
index 4aa2aebab3f..cfa44654d4c 100644
--- a/TAO/tests/DSI_AMI_Gateway/client.cpp
+++ b/TAO/tests/DSI_AMI_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,18 @@ 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 - ");
+ 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 0;
+ return test_system_exception == 1 ? 0 : 1;
}
catch (const CORBA::Exception& ex)
{