summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/priority/TestSuite.cpp
blob: 4e0c8701df7fd5638bcfb4d49c246a80e3fec985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// **********************************************************************
//
// Copyright (c) 2003-2015 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/MutexProtocol.h>

#include <TestSuite.h>
#include <ThreadPriority.h>
#include <TimerPriority.h>
#include <PriorityInversion.h>

std::list<TestBasePtr> allTests;

void
initializeTestSuite()
{
    allTests.push_back(new ThreadPriorityTest);
    allTests.push_back(new TimerPriorityTest);
    if(IceUtil::getDefaultMutexProtocol() == IceUtil::PrioInherit)
    {
        allTests.push_back(new PriorityInversionTest);
    }
}