Skip to content

Commit

Permalink
using properties.maxTemperature in tempst1
Browse files Browse the repository at this point in the history
  • Loading branch information
harinik124 committed Sep 23, 2024
1 parent 2c379a7 commit 2865268
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class TempModuleTest : public lzt::SysmanCtsClass {};
#define TEMPERATURE_TEST TempModuleTest
#endif // USE_ZESINIT

constexpr uint32_t invalid_max_temperature = 125;
constexpr uint32_t invalid_min_temperature = 10;
constexpr double invalid_min_temperature = 10;

TEST_F(
TEMPERATURE_TEST,
Expand Down Expand Up @@ -256,8 +255,9 @@ TEST_F(TEMPERATURE_TEST,
for (auto temp_handle : temp_handles) {
ASSERT_NE(nullptr, temp_handle);
auto temp = lzt::get_temp_state(temp_handle);
auto properties = lzt::get_temp_properties(temp_handle);
EXPECT_GT(temp, invalid_min_temperature);
EXPECT_LT(temp, invalid_max_temperature);
EXPECT_LE(temp, properties.maxTemperature);
}
}
}
Expand Down

0 comments on commit 2865268

Please sign in to comment.