summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/TestI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-10-26 18:02:49 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-10-26 18:02:49 +0200
commitda840df6a47591d7816e977c7c030f7330a2f098 (patch)
tree88da6faf9424e42a5e8258a4c6969d741914efa5 /cpp/test/Ice/exceptions/TestI.cpp
parentMinor metrics fixes (diff)
downloadice-da840df6a47591d7816e977c7c030f7330a2f098.tar.bz2
ice-da840df6a47591d7816e977c7c030f7330a2f098.tar.xz
ice-da840df6a47591d7816e977c7c030f7330a2f098.zip
Fixed cross test failure, memory leaks and UMRs
Diffstat (limited to 'cpp/test/Ice/exceptions/TestI.cpp')
-rw-r--r--cpp/test/Ice/exceptions/TestI.cpp58
1 files changed, 1 insertions, 57 deletions
diff --git a/cpp/test/Ice/exceptions/TestI.cpp b/cpp/test/Ice/exceptions/TestI.cpp
index 0dcad9963d0..56797a7c5c7 100644
--- a/cpp/test/Ice/exceptions/TestI.cpp
+++ b/cpp/test/Ice/exceptions/TestI.cpp
@@ -14,16 +14,6 @@
using namespace Test;
using namespace std;
-bool
-endsWith(const string& s, const string& findme)
-{
- if(s.length() > findme.length())
- {
- return 0 == s.compare(s.length() - findme.length(), findme.length(), findme);
- }
- return false;
-}
-
ThrowerI::ThrowerI()
{
}
@@ -176,51 +166,5 @@ ThrowerI::throwAfterException(const Ice::Current&)
//
// Only relevant for AMD.
//
- throw A();
-}
-
-void
-ThrowerI::throwE(const Ice::Current&)
-{
- throw E("E");
-}
-
-void
-ThrowerI::throwF(const Ice::Current&)
-{
- throw F("F");
-}
-
-void
-ThrowerI::throwG(const Ice::Current&)
-{
- try
- {
- throw G(__FILE__, __LINE__, "G");
- }
- catch(const G& ex)
- {
- ostringstream os;
- ex.ice_print(os);
- test(endsWith(os.str(), "Test::G"));
- test(ex.data == "G");
- throw ex;
- }
-}
-
-void
-ThrowerI::throwH(const Ice::Current&)
-{
- try
- {
- throw H(__FILE__, __LINE__, "H");
- }
- catch(const H& ex)
- {
- ostringstream os;
- ex.ice_print(os);
- test(endsWith(os.str(), "Test::H data:'H'"));
- test(ex.data == "H");
- throw ex;
- }
+ throw A(12345);
}