diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-06-28 17:11:50 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-07-02 14:19:03 +0200 |
commit | 1339c5385567b7062394e48df3ab784440fe2c4b (patch) | |
tree | 74d6598b25f2a0fd0e23e80247b1ef9bb7f0f47b /cpp | |
parent | Fixed ICE-5368: don't unregister writes from thread pool if connection is clo... (diff) | |
download | ice-1339c5385567b7062394e48df3ab784440fe2c4b.tar.bz2 ice-1339c5385567b7062394e48df3ab784440fe2c4b.tar.xz ice-1339c5385567b7062394e48df3ab784440fe2c4b.zip |
Worked around optional test failure when compiled with -O2 on iPhone
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Ice/optional/AllTests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/Ice/optional/AllTests.cpp b/cpp/test/Ice/optional/AllTests.cpp index b46df4d5a6a..1bf2d5f060f 100644 --- a/cpp/test/Ice/optional/AllTests.cpp +++ b/cpp/test/Ice/optional/AllTests.cpp @@ -233,12 +233,12 @@ public: _enabled = enabled; } }; +typedef IceUtil::Handle<FactoryI> FactoryIPtr; InitialPrx allTests(const Ice::CommunicatorPtr& communicator, bool) -{ - FactoryI* factory = new FactoryI(); - Ice::ObjectFactoryPtr f(factory); +{ + FactoryIPtr factory = new FactoryI(); communicator->addObjectFactory(factory, ""); cout << "testing stringToProxy... " << flush; |