distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
SignalsInterruptionTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_SIGNALS_SIGNALSINTERRUPTIONTESTCASE_HPP_
13 #define TEST_SIGNALS_SIGNALSINTERRUPTIONTESTCASE_HPP_
14 
16 
17 namespace distortos
18 {
19 
20 namespace test
21 {
22 
31 {
33  constexpr static uint8_t testCasePriority_ {UINT8_MAX / 2};
34 
35 public:
36 
41  constexpr static uint8_t getTestCasePriority()
42  {
43  return testCasePriority_;
44  }
45 
53  {
54 
55  }
56 
57 private:
58 
67  static void signalHandler(const SignalInformation& signalInformation);
68 
75  bool run_() const override;
76 };
77 
78 } // namespace test
79 
80 } // namespace distortos
81 
82 #endif // TEST_SIGNALS_SIGNALSINTERRUPTIONTESTCASE_HPP_
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: SignalsInterruptionTestCase.hpp:33
static constexpr uint8_t getTestCasePriority()
Definition: SignalsInterruptionTestCase.hpp:41
SignalsTestCaseCommon class is a TestCase with initialization and finalization steps required for sig...
Definition: SignalsTestCaseCommon.hpp:39
SignalsTestCaseCommon class header.
static void signalHandler(const SignalInformation &signalInformation)
Signal handler.
Definition: SignalsInterruptionTestCase.cpp:765
SignalSet class is used as a set of signals.
Definition: SignalSet.hpp:28
Top-level namespace of distortos project.
Tests interruption of various "blocking" functions by an unmasked, caught signal. ...
Definition: SignalsInterruptionTestCase.hpp:30
constexpr SignalsInterruptionTestCase()
SignalsInterruptionTestCase's constructor.
Definition: SignalsInterruptionTestCase.hpp:50
bool run_() const override
Runs the test case.
Definition: SignalsInterruptionTestCase.cpp:784
SignalInformation class contains information about queued signal.
Definition: SignalInformation.hpp:29
static constexpr Empty empty
tag object to construct empty SignalSet
Definition: SignalSet.hpp:48