diff options
Diffstat (limited to 'cpp/test/IceUtil/priority/Client.cpp')
-rw-r--r-- | cpp/test/IceUtil/priority/Client.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/priority/Client.cpp b/cpp/test/IceUtil/priority/Client.cpp new file mode 100644 index 00000000000..335c6725514 --- /dev/null +++ b/cpp/test/IceUtil/priority/Client.cpp @@ -0,0 +1,53 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <IceUtil/IceUtil.h> + +#include <stdlib.h> +#include <TestCommon.h> + +#include <TestSuite.h> +#include <IceUtil/MutexProtocol.h> + +using namespace std; + +#ifndef _WIN32 + +namespace IceUtil +{ + +ICE_UTIL_API MutexProtocol +getDefaultMutexProtocol() +{ + return PrioInherit; +} + +} + +#endif + +int +main(int argc, char** argv) +{ + try + { + initializeTestSuite(); + + for(list<TestBasePtr>::const_iterator p = allTests.begin(); p != allTests.end(); ++p) + { + (*p)->start(); + } + } + catch(const TestFailed& e) + { + cout << "test " << e.name << " failed" << endl; + return EXIT_FAILURE; + } + return EXIT_SUCCESS; +} |