Skip to content

Commit 3a1f1fa

Browse files
fix: Removed the condition variable check from Sysman Memory CTS
During the call to fetch the memory and the RAS states, the condition variable check has been removed. Related-To: VLCLJ-2343 Signed-off-by: Pratik Bari <[email protected]>
1 parent e3bfc16 commit 3a1f1fa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

conformance_tests/sysman/test_sysman_memory/src/test_sysman_memory.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2020-2023 Intel Corporation
3+
* Copyright (C) 2020-2025 Intel Corporation
44
*
55
* SPDX-License-Identifier: MIT
66
*
@@ -18,8 +18,6 @@ namespace lzt = level_zero_tests;
1818

1919
namespace {
2020

21-
std::mutex mem_mutex;
22-
2321
#ifdef USE_ZESINIT
2422
class MemoryModuleZesTest : public lzt::ZesSysmanCtsClass {};
2523
#define MEMORY_TEST MemoryModuleZesTest
@@ -401,12 +399,10 @@ void getMemoryState(ze_device_handle_t device) {
401399
FAIL() << "No handles found: "
402400
<< _ze_result_t(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE);
403401
}
404-
std::unique_lock<std::mutex> lock(mem_mutex);
405402
for (auto mem_handle : mem_handles) {
406403
ASSERT_NE(nullptr, mem_handle);
407404
lzt::get_mem_state(mem_handle);
408405
}
409-
lock.unlock();
410406
}
411407

412408
void getRasState(ze_device_handle_t device) {
@@ -417,13 +413,11 @@ void getRasState(ze_device_handle_t device) {
417413
FAIL() << "No handles found: "
418414
<< _ze_result_t(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE);
419415
}
420-
std::unique_lock<std::mutex> lock(mem_mutex);
421416
for (auto ras_handle : ras_handles) {
422417
ASSERT_NE(nullptr, ras_handle);
423418
ze_bool_t clear = 0;
424419
lzt::get_ras_state(ras_handle, clear);
425420
}
426-
lock.unlock();
427421
}
428422

429423
TEST_F(

0 commit comments

Comments
 (0)