diff options
Diffstat (limited to 'cppe/test/IceE/thread/MutexTest.cpp')
-rw-r--r-- | cppe/test/IceE/thread/MutexTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppe/test/IceE/thread/MutexTest.cpp b/cppe/test/IceE/thread/MutexTest.cpp index e333ff788a8..17573b5382a 100644 --- a/cppe/test/IceE/thread/MutexTest.cpp +++ b/cppe/test/IceE/thread/MutexTest.cpp @@ -119,17 +119,17 @@ MutexTest::run() } Mutex::TryLock lock2(mutex); -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__linux) try { test(lock.tryAcquire() == false); } - catch(const IceUtil::ThreadSyscallException& ex) + catch(const IceUtil::ThreadLockedException&) { // - // pthread_mutex_trylock returns EDEADLK in FreeBSD's new threading implementation. + // pthread_mutex_trylock returns EDEADLK in FreeBSD's new threading implementation + // as well as on Fedora Core 5. // - test(ex.error() == EDEADLK); } #else test(lock.tryAcquire() == false); |