SWDEV-487649 - SWDEV-487639 - SWDEV-487636 - Fix memory leaks in catch tests
Change-Id: I7943ecffec6d470789aabde07e6c52d6b871cc13
[ROCm/hip-tests commit: 9cf127697e]
Este commit está contenido en:
@@ -26,10 +26,17 @@ int MallocFunc() {
|
||||
hipError_t err;
|
||||
err = hipMalloc(reinterpret_cast<void**>(&Ad), 1024);
|
||||
if (err == hipSuccess) {
|
||||
std::cout <<"PASSED!" <<std::endl;
|
||||
return 1;
|
||||
std::cout <<"hipMalloc PASSED!" <<std::endl;
|
||||
err = hipFree(Ad);
|
||||
if (err == hipSuccess) {
|
||||
std::cout <<"hipFree PASSED!" <<std::endl;
|
||||
return 1;
|
||||
} else {
|
||||
std::cout <<"hipFree FAILED!" <<std::endl;
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
std::cout <<"FAILED!" <<std::endl;
|
||||
std::cout <<"hipMalloc FAILED!" <<std::endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user