Skip to content

Commit 3dfbfd0

Browse files
move qf_ctrl provide AO priorities into an enum and provide five predetermined priorities for dummy active objects.
1 parent c74cacb commit 3dfbfd0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cpputest-for-qpc-lib/include/cms_cpputest_qf_ctrl.hpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,17 @@ class PublishedEventRecorder;
3636

3737
namespace qf_ctrl {
3838

39-
static constexpr uint8_t UNIT_UNDER_TEST_PRIORITY = QF_MAX_ACTIVE;
40-
static constexpr uint8_t RECORDER_PRIORITY = 1;
39+
enum : uint8_t {
40+
RECORDER_PRIORITY = 1,
41+
DUMMY_AO_A_PRIORITY,
42+
DUMMY_AO_B_PRIORITY,
43+
DUMMY_AO_C_PRIORITY,
44+
DUMMY_AO_D_PRIORITY,
45+
DUMMY_AO_E_PRIORITY,
46+
UNIT_UNDER_TEST_PRIORITY
47+
};
48+
static_assert(UNIT_UNDER_TEST_PRIORITY < QF_MAX_ACTIVE,
49+
"too many priorities defined");
4150

4251
enum class MemPoolTeardownOption { CHECK_FOR_LEAKS, IGNORE };
4352

0 commit comments

Comments
 (0)