From 8129265ab2f2e7c922384edd73a783b12c9b194c Mon Sep 17 00:00:00 2001 From: Anvesh Bakwad Date: Mon, 1 Dec 2025 20:46:51 +0000 Subject: [PATCH 1/2] fix: Fix power energy threshold related tests Related-To: VLCLJ-2648 Signed-off-by: Anvesh Bakwad --- .../sysman/test_sysman_power/src/test_sysman_power.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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..ab68824c 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_LT(pThreshold.processId, UINT32_MAX); } } else { LOG_INFO << "No power handles found for this device! "; @@ -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 From eea7e3931be84e1e04c655dd8f0a54c997d6068c Mon Sep 17 00:00:00 2001 From: Anvesh Bakwad Date: Mon, 1 Dec 2025 20:46:51 +0000 Subject: [PATCH 2/2] fix: Fix power energy threshold related tests Related-To: VLCLJ-2648 Signed-off-by: Anvesh Bakwad --- .../sysman/test_sysman_power/src/test_sysman_power.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ab68824c..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,7 +406,7 @@ LZT_TEST_F( } EXPECT_ZE_RESULT_SUCCESS(status); ASSERT_GE(pThreshold.threshold, 0); - EXPECT_LT(pThreshold.processId, UINT32_MAX); + EXPECT_LE(pThreshold.processId, UINT32_MAX); } } else { LOG_INFO << "No power handles found for this device! "; @@ -473,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 = {};