diff options
author | Marc Laukien <marc@zeroc.com> | 2004-02-17 22:58:44 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-02-17 22:58:44 +0000 |
commit | 42874491cf46e1385874c7c01ecab5963422660a (patch) | |
tree | 408098afc7aa069e9bbe97ccfceac7ec3cc0be1b /cpp/test/Ice/exceptions/AllTests.cpp | |
parent | fixes (diff) | |
download | ice-42874491cf46e1385874c7c01ecab5963422660a.tar.bz2 ice-42874491cf46e1385874c7c01ecab5963422660a.tar.xz ice-42874491cf46e1385874c7c01ecab5963422660a.zip |
fix
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index 3042cd14fc4..d7627a50ff5 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -56,11 +56,12 @@ public: IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this); while(!_called) { - if(!timedWait(IceUtil::Time::seconds(15))) + if(!timedWait(IceUtil::Time::seconds(5))) { return false; } } + _called = false; return true; } @@ -1047,6 +1048,9 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) AMI_Thrower_throwAasAIPtr cb = new AMI_Thrower_throwAasAI; thrower->throwAasA_async(cb, 1); test(cb->check()); + // Let's check if we can reuse the same callback object for another call. + thrower->throwAasA_async(cb, 1); + test(cb->check()); } { @@ -1071,6 +1075,9 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) AMI_Thrower_throwCasCIPtr cb = new AMI_Thrower_throwCasCI; thrower->throwCasC_async(cb, 1, 2, 3); test(cb->check()); + // Let's check if we can reuse the same callback object for another call. + thrower->throwCasC_async(cb, 1, 2, 3); + test(cb->check()); } cout << "ok" << endl; |