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

Functions

bool phase1 ()
 Phase 1 of test case. More...
 
bool phase2 ()
 Phase 2 of test case. More...
 

Variables

constexpr size_t testThreadStackSize {512}
 size of stack for test thread, bytes More...
 

Function Documentation

◆ phase1()

bool distortos::test::anonymous_namespace{SignalsQueuedOperationsTestCase.cpp}::phase1 ( )

Phase 1 of test case.

The same signal number is queued multiple times for current thread (with increasing signal value) until EAGAIN error code is returned, which means that all space for queuing of signals is used. The same number of calls to ThisThread::Signals::tryWait() must succeed and signal value contained in received SignalInformation object must match expected values.

Returns
true if test succeeded, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ phase2()

bool distortos::test::anonymous_namespace{SignalsQueuedOperationsTestCase.cpp}::phase2 ( )

Phase 2 of test case.

Tests error cases specific to queuing of signals:

  • attempt to queue a signal to thread that has enabled reception of signals but disabled queuing of signals must fail with ENOTSUP;
Returns
true if test succeeded, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ testThreadStackSize

constexpr size_t distortos::test::anonymous_namespace{SignalsQueuedOperationsTestCase.cpp}::testThreadStackSize {512}

size of stack for test thread, bytes