distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp} Namespace Reference

Functions

bool testInvalidLockAttempt (const Mutex::Type type)
 Tests invalid lock attempts. More...
 
bool testPriorityChanges (const Mutex::Type type)
 Tests changes of priority resulting from locking mutexes with PriorityProtect protocol. More...
 

Variables

constexpr auto singleDuration = TickClock::duration{1}
 single duration used in tests More...
 
constexpr uint8_t testThreadPriority {MutexPriorityProtectOperationsTestCase::getTestCasePriority()}
 priority of current test thread More...
 

Function Documentation

◆ testInvalidLockAttempt()

bool distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::testInvalidLockAttempt ( const Mutex::Type  type)

Tests invalid lock attempts.

Parameters
[in]typeis the Mutex::Type that will be tested
Returns
true if the test case succeeded, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ testPriorityChanges()

bool distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::testPriorityChanges ( const Mutex::Type  type)

Tests changes of priority resulting from locking mutexes with PriorityProtect protocol.

Parameters
[in]typeis the Mutex::Type that will be tested
Returns
true if the test case succeeded, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ singleDuration

constexpr auto distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::singleDuration = TickClock::duration{1}

single duration used in tests

◆ testThreadPriority

constexpr uint8_t distortos::test::anonymous_namespace{MutexPriorityProtectOperationsTestCase.cpp}::testThreadPriority {MutexPriorityProtectOperationsTestCase::getTestCasePriority()}

priority of current test thread