Skip to content

Commit

Permalink
using properties.maxTemperature in tempst1
Browse files Browse the repository at this point in the history
Signed-off-by: Harini Kumaran <harini.kumaran@intel.com>
  • Loading branch information
harinik124 committed Sep 23, 2024
1 parent 2865268 commit 48ed62b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand All @@ -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,
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 48ed62b

Please sign in to comment.