SWDEV-311271 - Fix mempool tests

- Reduce the number of blocks in execution, because small allocations
can cause page faults and make the system unstable after
- Change error codes

Change-Id: I77561ffa236e05ad08afdcc79b7770bf36fcdf50
This commit is contained in:
German Andryeyev
2024-02-27 16:49:22 -05:00
parent 4a2fbe2e1f
commit 8ef86d1c7c
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -273,12 +273,12 @@ TEST_CASE("Unit_hipMemPoolSetAccess_Negative_Parameters") {
#endif
SECTION("Count > num_device") {
HIP_CHECK_ERROR(hipMemPoolSetAccess(mempool.mempool(), &desc, (num_dev + 1)),
hipErrorNotSupported);
hipErrorInvalidDevice);
}
SECTION("Passing invalid desc location type") {
desc.location.type = hipMemLocationTypeInvalid;
HIP_CHECK_ERROR(hipMemPoolSetAccess(mempool.mempool(), &desc, 1), hipErrorNotSupported);
HIP_CHECK_ERROR(hipMemPoolSetAccess(mempool.mempool(), &desc, 1), hipErrorInvalidValue);
desc.location.type = hipMemLocationTypeDevice;
}