Skip to content
Open
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 @@ -406,10 +406,7 @@ LZT_TEST_F(
}
EXPECT_ZE_RESULT_SUCCESS(status);
ASSERT_GE(pThreshold.threshold, 0);
if (pThreshold.threshold > 0)
EXPECT_LT(pThreshold.processId, UINT32_MAX);
else
EXPECT_EQ(pThreshold.processId, UINT32_MAX);
EXPECT_LE(pThreshold.processId, UINT32_MAX);
}
} else {
LOG_INFO << "No power handles found for this device! ";
Expand Down Expand Up @@ -476,7 +473,7 @@ LZT_TEST_F(
continue;
}
EXPECT_ZE_RESULT_SUCCESS(status);
double threshold = 0;
double threshold = 100.0;
lzt::set_power_energy_threshold(p_power_handle,
threshold); // set test value
zes_energy_threshold_t pThresholdGet = {};
Expand All @@ -488,7 +485,7 @@ LZT_TEST_F(
}
EXPECT_ZE_RESULT_SUCCESS(status);
EXPECT_EQ(pThresholdGet.threshold, threshold); // match both the values
EXPECT_EQ(pThresholdGet.processId, UINT32_MAX);
EXPECT_LT(pThresholdGet.processId, UINT32_MAX);
lzt::set_power_energy_threshold(
p_power_handle,
pThresholdInitial.threshold); // reset to initial value
Expand Down
Loading