diff options
Diffstat (limited to 'cpp/test/Ice/facets/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/facets/AllTests.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/test/Ice/facets/AllTests.cpp b/cpp/test/Ice/facets/AllTests.cpp index 3937266c1d4..d208c308a33 100644 --- a/cpp/test/Ice/facets/AllTests.cpp +++ b/cpp/test/Ice/facets/AllTests.cpp @@ -52,11 +52,17 @@ allTests(const Ice::CommunicatorPtr& communicator) test(ff->callF() == "F"); cout << "ok" << endl; - cout << "testing facet G... " << flush; - GPrx gf = GPrx::checkedCast(d, "facetG"); + cout << "testing facet G, which is a sub-facet of E and F... " << flush; + GPrx gf = GPrx::checkedCast(ff, "facetGH"); test(gf); test(gf->callG() == "G"); cout << "ok" << endl; + cout << "testing whether casting preserves the facet... " << flush; + HPrx hf = HPrx::checkedCast(gf); + test(hf); + test(hf->callH() == "H"); + cout << "ok" << endl; + return gf; } |