SWDEV-311271 - Update mempool errors

Add extra validations for negative tests.

Change-Id: I7b2879b8840b5d1b6c5cb0d919a651cd868b7529
Esse commit está contido em:
German Andryeyev
2024-02-27 17:08:30 -05:00
commit d808ae6782
3 arquivos alterados com 35 adições e 2 exclusões
+7
Ver Arquivo
@@ -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_);