Skip to content

Commit

Permalink
edits to build test cases, deployment table variables are non const
Browse files Browse the repository at this point in the history
  • Loading branch information
antara-chugh committed Aug 23, 2024
1 parent 8f31d59 commit 243be4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ struct DeploymentSchedule_
EnsembleInit init; //!< initialization function

//! measurements before processing
const std::uint32_t measurementsToAccumulate;
std::uint32_t measurementsToAccumulate;

//! time between ensembles
const std::uint32_t ensembleInterval;
std::uint32_t ensembleInterval;

//! max running time of measurement
const std::uint32_t maxDuration;
std::uint32_t maxDuration;

//! max delay before throwing flag and resetting
const std::uint32_t maxDelay;
std::uint32_t maxDelay;

//! task name of ensemble
const char* taskName;
Expand Down
9 changes: 5 additions & 4 deletions tests/fixed_google_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ class SchedulerFixedTests : public ::testing::Test
{ SS_ensembleAFunc, //measure
SS_ensembleAInit, //init
1, // measurementsToAccumulate
0, // ensembleDelay

table_default_interval_A, //ensembleInterval
table_default_duration_A, //maxDuration

UINT32_MAX, //maxDelay
"A", //taskName
"A", //taskName
{0} //state
},

{SS_ensembleBFunc, SS_ensembleBInit, 1, 0, table_default_interval_B, table_default_duration_B, UINT32_MAX, "B",{0}},
{SS_ensembleCFunc, SS_ensembleCInit, 1, 0, table_default_interval_C, table_default_duration_C, UINT32_MAX, "C", {0}},
{SS_ensembleBFunc, SS_ensembleBInit, 1, table_default_interval_B, table_default_duration_B, UINT32_MAX, "B", {0}},
{SS_ensembleCFunc, SS_ensembleCInit, 1, table_default_interval_C, table_default_duration_C, UINT32_MAX, "C", {0}},
};
test_log={};

Expand Down

0 comments on commit 243be4d

Please sign in to comment.