diff options
author | ZeroC Staff <git@zeroc.com> | 2007-12-18 12:43:45 -0500 |
---|---|---|
committer | ZeroC Staff <git@zeroc.com> | 2007-12-18 12:43:45 -0500 |
commit | 41b6ef772bdf2fa6724cfbf2d71acdb866140eac (patch) | |
tree | 33284f1fee522dac6f463034ae52d56ac97114db /cpp/test/IceUtil/thread/MonitorMutexTest.cpp | |
parent | changing version of Berkeley DB (diff) | |
download | ice-41b6ef772bdf2fa6724cfbf2d71acdb866140eac.tar.bz2 ice-41b6ef772bdf2fa6724cfbf2d71acdb866140eac.tar.xz ice-41b6ef772bdf2fa6724cfbf2d71acdb866140eac.zip |
Fixed bug #2277
Diffstat (limited to 'cpp/test/IceUtil/thread/MonitorMutexTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/MonitorMutexTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/thread/MonitorMutexTest.cpp b/cpp/test/IceUtil/thread/MonitorMutexTest.cpp index 6cfc32d2cd6..6ffd194f37f 100644 --- a/cpp/test/IceUtil/thread/MonitorMutexTest.cpp +++ b/cpp/test/IceUtil/thread/MonitorMutexTest.cpp @@ -181,6 +181,16 @@ MonitorMutexTest::run() // TEST: timedWait { Monitor<Mutex>::Lock lock(monitor); + + try + { + monitor.timedWait(Time::milliSeconds(-1)); + test(false); + } + catch(const IceUtil::InvalidTimeoutException&) + { + } + test(!monitor.timedWait(Time::milliSeconds(500))); } } |