diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-06-29 02:32:07 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-06-29 02:32:07 +0000 |
commit | 55ab18d671f9d5fd5db70a6a1d534fe0c9c46da7 (patch) | |
tree | 42733cde67afb76d8cae6357b1b7b9c17cf56685 /cpp | |
parent | Fixed GCC build (diff) | |
download | ice-55ab18d671f9d5fd5db70a6a1d534fe0c9c46da7.tar.bz2 ice-55ab18d671f9d5fd5db70a6a1d534fe0c9c46da7.tar.xz ice-55ab18d671f9d5fd5db70a6a1d534fe0c9c46da7.zip |
Fixed GCC build
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Ice/binding/AllTests.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/cpp/test/Ice/binding/AllTests.cpp b/cpp/test/Ice/binding/AllTests.cpp index d22c91e23f3..896f65abb2c 100644 --- a/cpp/test/Ice/binding/AllTests.cpp +++ b/cpp/test/Ice/binding/AllTests.cpp @@ -98,6 +98,8 @@ allTests(const Ice::CommunicatorPtr& communicator) string ref = "communicator:default -p 12010 -t 10000"; RemoteCommunicatorPrx com = RemoteCommunicatorPrx::uncheckedCast(communicator->stringToProxy(ref)); + RandomNumberGenerator rng; + cout << "testing binding with single endpoint... " << flush; { RemoteObjectAdapterPrx adapter = com->createObjectAdapter("Adapter", "default"); @@ -146,9 +148,9 @@ allTests(const Ice::CommunicatorPtr& communicator) vector<RemoteObjectAdapterPrx> adpts = adapters; TestIntfPrx test1 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test2 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test3 = createTestIntfPrx(adpts); test(test1->ice_getConnection() == test2->ice_getConnection()); @@ -193,9 +195,9 @@ allTests(const Ice::CommunicatorPtr& communicator) vector<RemoteObjectAdapterPrx> adpts = adapters; TestIntfPrx test1 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test2 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test3 = createTestIntfPrx(adpts); test(test1->ice_getConnection() == test2->ice_getConnection()); @@ -237,9 +239,9 @@ allTests(const Ice::CommunicatorPtr& communicator) vector<RemoteObjectAdapterPrx> adpts = adapters; TestIntfPrx test1 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test2 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test3 = createTestIntfPrx(adpts); test(test1->ice_getConnection() == test2->ice_getConnection()); @@ -284,9 +286,9 @@ allTests(const Ice::CommunicatorPtr& communicator) vector<RemoteObjectAdapterPrx> adpts = adapters; TestIntfPrx test1 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test2 = createTestIntfPrx(adpts); - random_shuffle(adpts.begin(), adpts.end(), RandomNumberGenerator()); + random_shuffle(adpts.begin(), adpts.end(), rng); TestIntfPrx test3 = createTestIntfPrx(adpts); test(test1->ice_getConnection() == test2->ice_getConnection()); |