Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TEST_F(SupervisionControlClient_UT, SupervisionControlClient_QueueOneEvent_Succe
"Description",
"This test verifies that a single SupervisionEvent can be successfully queued using the "
"SupervisionControlNotifier and retrieved using the SupervisionControlReceiver.");
SupervisionEvent event1{.id = process_, .eventType = SupervisionEventType::kActivation, .systemClockTimestamp = {}};
SupervisionEvent event1{process_, SupervisionEventType::kActivation, {}};

clock_gettime(CLOCK_MONOTONIC, &event1.systemClockTimestamp);

Expand All @@ -71,7 +71,7 @@ TEST_F(SupervisionControlClient_UT, SupervisionControlClient_QueueMaxNumberOfEve
"SupervisionEvent "
"instances defined by the buffer size, and that they can be retrieved using the SupervisionControlReceiver.");

SupervisionEvent event{.id = process_, .eventType = SupervisionEventType::kActivation, .systemClockTimestamp = {}};
SupervisionEvent event{process_, SupervisionEventType::kActivation, {}};

for (size_t i = 0; i < static_cast<size_t>(BufferConstants::BUFFER_QUEUE_SIZE); ++i)
{
Expand All @@ -97,7 +97,7 @@ TEST_F(SupervisionControlClient_UT, SupervisionControlClient_QueueOneEventTooMan
"Description",
"This test verifies that attempting to queue a SupervisionEvent when the buffer is already at maximum capacity "
"results in a failure, and that no additional events can be retrieved from the receiver.");
SupervisionEvent event{.id = process_, .eventType = SupervisionEventType::kActivation, .systemClockTimestamp = {}};
SupervisionEvent event{process_, SupervisionEventType::kActivation, {}};

for (size_t i = 0; i < static_cast<size_t>(BufferConstants::BUFFER_QUEUE_SIZE); ++i)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CycleTimer
int result{EINTR}; // means that the sleep was interrupted by a signal
while ((EINTR == result) && (!f_exitRequested_r.load()))
{
result = osInterface->clockNanosleep(static_cast<int>(TIMER_ABSTIME), &deadline, NULL);
result = osInterface->clockNanosleep(TIMER_ABSTIME, &deadline, NULL);
}
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ProcessInfoNodeFixture : public ::testing::Test
if (application_type == configuration::ApplicationType::ReportingAndSupervised)
{
configuration::ComponentAliveSupervision alive{
.reporting_cycle_ms = 10, .failed_cycles_tolerance = 1, .min_indications = 0, .max_indications = 0};
10 /*reporting_cycle_ms*/, 1 /*failed_cycles_tolerance*/, 0 /*min_indications*/, 0 /*max_indications*/};
config.component_properties.application_profile.alive_supervision = alive;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ void setLimit(const int resource, const std::size_t amount, const std::string_vi
return;
}

const struct rlimit limit{
.rlim_cur = amount,
.rlim_max = amount,
};
const struct rlimit limit{amount, amount};

applyLimitOrDie(resource, limit, rlimit_name);
}
Expand Down
4 changes: 2 additions & 2 deletions score/launch_manager/src/exec_error_domain_UT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using score::mw::lifecycle::g_ExecErrorDomain;
namespace
{

constexpr std::array<ExecErrc, 13> kAllKnownCodes = {
constexpr std::array<ExecErrc, 13> kAllKnownCodes{{
ExecErrc::kGeneralError,
ExecErrc::kInvalidArguments,
ExecErrc::kCommunicationError,
Expand All @@ -40,7 +40,7 @@ constexpr std::array<ExecErrc, 13> kAllKnownCodes = {
ExecErrc::kInTransitionToSameState,
ExecErrc::kNoTimeStamp,
ExecErrc::kCycleOverrun,
};
}};

} // namespace

Expand Down
Loading