diff --git a/conformance_tests/sysman/test_sysman_power/src/test_sysman_power.cpp b/conformance_tests/sysman/test_sysman_power/src/test_sysman_power.cpp index af4c2124..35f8f28b 100644 --- a/conformance_tests/sysman/test_sysman_power/src/test_sysman_power.cpp +++ b/conformance_tests/sysman/test_sysman_power/src/test_sysman_power.cpp @@ -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! "; @@ -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 = {}; @@ -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