summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/thread/StaticMutexTest.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-04-19 16:21:59 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-04-19 16:21:59 +0000
commit770381e8f14f0dd8e5c8ed8f822b980cd70eb28f (patch)
treec342a6346f6b59e8f1312840ca142357886468d9 /cppe/test/IceE/thread/StaticMutexTest.cpp
parentremoving client/server properties for IceSSL (diff)
downloadice-770381e8f14f0dd8e5c8ed8f822b980cd70eb28f.tar.bz2
ice-770381e8f14f0dd8e5c8ed8f822b980cd70eb28f.tar.xz
ice-770381e8f14f0dd8e5c8ed8f822b980cd70eb28f.zip
Added support for GCC 4.1
Diffstat (limited to 'cppe/test/IceE/thread/StaticMutexTest.cpp')
-rw-r--r--cppe/test/IceE/thread/StaticMutexTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppe/test/IceE/thread/StaticMutexTest.cpp b/cppe/test/IceE/thread/StaticMutexTest.cpp
index 023b20ba6db..8b265330cbb 100644
--- a/cppe/test/IceE/thread/StaticMutexTest.cpp
+++ b/cppe/test/IceE/thread/StaticMutexTest.cpp
@@ -123,17 +123,17 @@ StaticMutexTest::run()
// Under WinCE tryAcquire() does not do recursion checks.
//
#ifndef _WIN32_WCE
-#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 Fedora Core 5.
//
- test(ex.error() == EDEADLK);
}
#else
test(lock.tryAcquire() == false);