// ********************************************************************** // // Copyright (c) 2003-2018 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 #include #include #include #include using namespace std; #ifndef _WIN32 namespace IceUtil { ICE_API MutexProtocol getDefaultMutexProtocol() { # if defined(_POSIX_THREAD_PRIO_INHERIT) && _POSIX_THREAD_PRIO_INHERIT > 0 return PrioInherit; # else return PrioNone; # endif } } #endif int main(int, char**) { try { initializeTestSuite(); for(list::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; }