-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add CTS for Sysman memory diagnostics #137
base: master
Are you sure you want to change the base?
Conversation
Related-To: VLCLJ-2372 Signed-off-by: B, Vishnu Khanth <[email protected]>
d3a8b66
to
9ce9f82
Compare
auto properties = lzt::get_diag_properties(diag_handle); | ||
|
||
if (strcmp(properties.name, "MEMORY_PPR") == 0) { | ||
bool mem_diag_available = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be using the declaration at Ln 257 ?
uint32_t mem_handles_count = 0; | ||
std::vector<zes_mem_handle_t> mem_handles = | ||
lzt::get_mem_handles(device, mem_handles_count); | ||
EXPECT_GT(mem_handles_count, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have verification to check mem_handles_count is same as before diagnostics ?
|
||
for (auto mem_handle : mem_handles) { | ||
ASSERT_NE(nullptr, mem_handle); | ||
lzt::get_mem_state(mem_handle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error check ?
} | ||
|
||
if (!diag_handles_available) { | ||
FAIL() << "No handles found in any of the devices!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No "Diagnostic"
FAIL() << "Memory Diagnostics is not available for this device!"; | ||
} | ||
} else { | ||
LOG_WARNING << "No handles found on this device!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify what handles are not found
Related-To: VLCLJ-2372