13 |
// we need an additional thread to test the Mutex class |
// we need an additional thread to test the Mutex class |
14 |
#include "../common/Thread.h" |
#include "../common/Thread.h" |
15 |
|
|
16 |
|
using namespace LinuxSampler; |
17 |
|
|
18 |
class MutexTest : public CppUnit::TestFixture { |
class MutexTest : public CppUnit::TestFixture { |
19 |
|
|
20 |
CPPUNIT_TEST_SUITE(MutexTest); |
CPPUNIT_TEST_SUITE(MutexTest); |
21 |
|
CPPUNIT_TEST(printTestSuiteName); |
22 |
CPPUNIT_TEST(testLockAndUnlockBySingleThread); |
CPPUNIT_TEST(testLockAndUnlockBySingleThread); |
23 |
CPPUNIT_TEST(testLock); |
CPPUNIT_TEST(testLock); |
24 |
CPPUNIT_TEST(testUnlock); |
CPPUNIT_TEST(testUnlock); |
53 |
void setUp(); |
void setUp(); |
54 |
void tearDown(); |
void tearDown(); |
55 |
|
|
56 |
|
void printTestSuiteName(); |
57 |
|
|
58 |
void testLockAndUnlockBySingleThread(); |
void testLockAndUnlockBySingleThread(); |
59 |
void testLock(); |
void testLock(); |
60 |
void testUnlock(); |
void testUnlock(); |