distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
ARMv7-M-FpuSignalTestCase.hpp
Go to the documentation of this file.
1 
12 #ifndef TEST_ARCHITECTURE_ARM_ARMV7_M_ARMV7_M_FPUSIGNALTESTCASE_HPP_
13 #define TEST_ARCHITECTURE_ARM_ARMV7_M_ARMV7_M_FPUSIGNALTESTCASE_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 
50  constexpr FpuSignalTestCase() :
52  {
53 
54  }
55 
56 protected:
57 
66  bool finalize() const override;
67 
68 private:
69 
76  bool run_() const override;
77 };
78 
79 } // namespace test
80 
81 } // namespace distortos
82 
83 #endif // TEST_ARCHITECTURE_ARM_ARMV7_M_ARMV7_M_FPUSIGNALTESTCASE_HPP_
constexpr FpuSignalTestCase()
SignalsCatchingTestCase's constructor.
Definition: ARMv7-M-FpuSignalTestCase.hpp:50
SignalsTestCaseCommon class is a TestCase with initialization and finalization steps required for sig...
Definition: SignalsTestCaseCommon.hpp:39
SignalsTestCaseCommon class header.
SignalSet class is used as a set of signals.
Definition: SignalSet.hpp:28
static constexpr uint8_t getTestCasePriority()
Definition: ARMv7-M-FpuSignalTestCase.hpp:41
Top-level namespace of distortos project.
static constexpr uint8_t testCasePriority_
priority at which this test case should be executed
Definition: ARMv7-M-FpuSignalTestCase.hpp:33
bool run_() const override
Runs the test case.
Definition: ARMv7-M-FpuSignalTestCase.cpp:254
bool finalize() const override
Finalizes the test case.
Definition: ARMv7-M-FpuSignalTestCase.cpp:239
static constexpr Empty empty
tag object to construct empty SignalSet
Definition: SignalSet.hpp:48
Tests saving of FPU context between thread, signal sender (interrupt or another thread) and signal ha...
Definition: ARMv7-M-FpuSignalTestCase.hpp:30