SWDEV-311271 - Update mempool errors

Add extra validations for negative tests.

Change-Id: I7b2879b8840b5d1b6c5cb0d919a651cd868b7529
This commit is contained in:
German Andryeyev
2024-02-27 17:08:30 -05:00
parent 3fdd46ae59
commit d808ae6782
3 changed files with 35 additions and 2 deletions
+7
View File
@@ -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_);