summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/Twoways.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/operations/Twoways.cpp')
-rw-r--r--cpp/test/Ice/operations/Twoways.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp
index bd9284311c3..fb676802ef4 100644
--- a/cpp/test/Ice/operations/Twoways.cpp
+++ b/cpp/test/Ice/operations/Twoways.cpp
@@ -126,9 +126,9 @@ twoways(const Test::MyClassPrx& p)
Test::MyClassPrx r;
r = p->opMyClass(p, c1, c2);
- test(c1 == p);
- test(c2 != p);
- //test(r == p);
+ test(Ice::proxyIdentityAndFacetEqual(c1, p));
+ test(!Ice::proxyIdentityAndFacetEqual(c2, p));
+ test(Ice::proxyIdentityAndFacetEqual(r, p));
test(c1->ice_getIdentity() == Ice::stringToIdentity("test"));
test(c2->ice_getIdentity() == Ice::stringToIdentity("noSuchIdentity"));
test(r->ice_getIdentity() == Ice::stringToIdentity("test"));
@@ -146,7 +146,7 @@ twoways(const Test::MyClassPrx& p)
r = p->opMyClass(0, c1, c2);
test(c1 == 0);
test(c2 != 0);
- test(r == p);
+ test(Ice::proxyIdentityAndFacetEqual(r, p));
r->opVoid();
// TODO: For some reasons this test sometimes doesn't work on linux
#ifdef _WIN32