From 48ed62b1650a60b7f502968d68c22deae0139488 Mon Sep 17 00:00:00 2001 From: Harini Kumaran Date: Mon, 23 Sep 2024 18:44:57 +0000 Subject: [PATCH] using properties.maxTemperature in tempst1 Signed-off-by: Harini Kumaran --- .../test_sysman_temperature/src/test_sysman_temperature.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conformance_tests/sysman/test_sysman_temperature/src/test_sysman_temperature.cpp b/conformance_tests/sysman/test_sysman_temperature/src/test_sysman_temperature.cpp index 7be6452b..e31b60f2 100644 --- a/conformance_tests/sysman/test_sysman_temperature/src/test_sysman_temperature.cpp +++ b/conformance_tests/sysman/test_sysman_temperature/src/test_sysman_temperature.cpp @@ -1,6 +1,6 @@ /* * - * Copyright (C) 2020-2023 Intel Corporation + * Copyright (C) 2020-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -26,6 +26,7 @@ class TempModuleTest : public lzt::SysmanCtsClass {}; #endif // USE_ZESINIT constexpr double invalid_min_temperature = 10; +constexpr double invalid_max_temperature = 125; TEST_F( TEMPERATURE_TEST, @@ -257,7 +258,7 @@ TEST_F(TEMPERATURE_TEST, auto temp = lzt::get_temp_state(temp_handle); auto properties = lzt::get_temp_properties(temp_handle); EXPECT_GT(temp, invalid_min_temperature); - EXPECT_LE(temp, properties.maxTemperature); + EXPECT_LT(temp, invalid_max_temperature); } } }