Skip to content

Commit 6b70b9f

Browse files
committed
Fix: Add Test for Validating ECC Default State Values
Related-To: VLCLJ-2433 The test ensures that the ECC state retrieval API returns valid values when ECC is available on a valid device handle Signed-off-by: Alle, Kalyan <[email protected]>
1 parent b4e8bcf commit 6b70b9f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

conformance_tests/sysman/test_sysman_ecc/src/test_sysman_ecc.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,17 @@ LZT_TEST_F(
186186
}
187187
}
188188

189-
TEST_F(
189+
LZT_TEST_F(
190190
ECC_TEST,
191191
GIvenValidDeviceHandleWhenEccGetDefaultStateIsQueriedThenValidValuesAreReturned) {
192192
for (const auto &device : devices) {
193193
auto available = lzt::get_ecc_available(device);
194194
auto configurable = lzt::get_ecc_configurable(device);
195-
if (available == static_cast<ze_bool_t>(true) && configurable == static_cast<ze_bool_t>(true)) {
195+
if (available == static_cast<ze_bool_t>(true) &&
196+
configurable == static_cast<ze_bool_t>(true)) {
196197
zes_device_ecc_properties_t eccState = {
197198
ZES_STRUCTURE_TYPE_DEVICE_ECC_PROPERTIES, nullptr};
198-
EXPECT_EQ(ZE_RESULT_SUCCESS, zesDeviceGetEccState(device, &eccState));
199+
EXPECT_ZE_RESULT_SUCCESS(zesDeviceGetEccState(device, &eccState));
199200
EXPECT_GE(eccState.currentState, ZES_DEVICE_ECC_STATE_UNAVAILABLE);
200201
EXPECT_LE(eccState.currentState, ZES_DEVICE_ECC_STATE_DISABLED);
201202
EXPECT_GE(eccState.pendingState, ZES_DEVICE_ECC_STATE_UNAVAILABLE);
@@ -204,8 +205,8 @@ TEST_F(
204205
EXPECT_LE(eccState.pendingAction, ZES_DEVICE_ACTION_COLD_SYSTEM_REBOOT);
205206
} else {
206207
LOG_INFO << "ECC is not available or not configurable";
207-
}
208-
}
208+
}
209+
}
209210
}
210211

211212
} // namespace

0 commit comments

Comments
 (0)