summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/slicing/exceptions/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/slicing/exceptions/AllTests.cpp')
-rw-r--r--cpp/test/Ice/slicing/exceptions/AllTests.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/test/Ice/slicing/exceptions/AllTests.cpp b/cpp/test/Ice/slicing/exceptions/AllTests.cpp
index 83142e8139c..6aa4269054b 100644
--- a/cpp/test/Ice/slicing/exceptions/AllTests.cpp
+++ b/cpp/test/Ice/slicing/exceptions/AllTests.cpp
@@ -34,6 +34,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "Base.b");
+ test(b.ice_name() == "Base");
gotException = true;
}
catch(...)
@@ -54,6 +55,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "UnknownDerived.b");
+ test(b.ice_name() == "Base");
gotException = true;
}
catch(...)
@@ -75,6 +77,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(k.b == "KnownDerived.b");
test(k.kd == "KnownDerived.kd");
+ test(k.ice_name() == "KnownDerived");
gotException = true;
}
catch(...)
@@ -96,6 +99,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(k.b == "KnownDerived.b");
test(k.kd == "KnownDerived.kd");
+ test(k.ice_name() == "KnownDerived");
gotException = true;
}
catch(...)
@@ -116,6 +120,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "UnknownIntermediate.b");
+ test(b.ice_name() == "Base");
gotException = true;
}
catch(...)
@@ -137,6 +142,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "KnownIntermediate.b");
test(ki.ki == "KnownIntermediate.ki");
+ test(ki.ice_name() == "KnownIntermediate");
gotException = true;
}
catch(...)
@@ -159,6 +165,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
+ test(kmd.ice_name() == "KnownMostDerived");
gotException = true;
}
catch(...)
@@ -180,6 +187,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "KnownIntermediate.b");
test(ki.ki == "KnownIntermediate.ki");
+ test(ki.ice_name() == "KnownIntermediate");
gotException = true;
}
catch(...)
@@ -202,6 +210,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
+ test(kmd.ice_name() == "KnownMostDerived");
gotException = true;
}
catch(...)
@@ -224,6 +233,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(kmd.b == "KnownMostDerived.b");
test(kmd.ki == "KnownMostDerived.ki");
test(kmd.kmd == "KnownMostDerived.kmd");
+ test(kmd.ice_name() == "KnownMostDerived");
gotException = true;
}
catch(...)
@@ -245,6 +255,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "UnknownMostDerived1.b");
test(ki.ki == "UnknownMostDerived1.ki");
+ test(ki.ice_name() == "KnownIntermediate");
gotException = true;
}
catch(...)
@@ -267,6 +278,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
test(ki.b == "UnknownMostDerived1.b");
test(ki.ki == "UnknownMostDerived1.ki");
+ test(ki.ice_name() == "KnownIntermediate");
gotException = true;
}
catch(...)
@@ -287,6 +299,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
catch(const Base& b)
{
test(b.b == "UnknownMostDerived2.b");
+ test(b.ice_name() == "Base");
gotException = true;
}
catch(...)