SWDEV-311271 - Update mempool errors

Add extra validations for negative tests.

Change-Id: I7b2879b8840b5d1b6c5cb0d919a651cd868b7529


[ROCm/clr commit: d808ae6782]
This commit is contained in:
German Andryeyev committed 2024-02-28 17:13:49 -05:00
1 förälder 423fd58c3f
incheckning e26e82d58e
3 files changed
+35 -2

No files matched your search

+7
Visa fil
@@ -74,6 +74,13 @@ bool Device::Create() {
return true;
}
// ================================================================================================
bool Device::IsMemoryPoolValid(MemoryPool* pool) {
amd::ScopedLock lock(lock_);
bool result = (mem_pools_.find(pool) != mem_pools_.end()) ? true : false;
return result;
}
// ================================================================================================
void Device::AddMemoryPool(MemoryPool* pool) {
amd::ScopedLock lock(lock_);