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
Αυτή η υποβολή περιλαμβάνεται σε:
German Andryeyev committed 2024-02-29 15:21:20 -05:00
1 γονέας 4a2fbe2e1f
υποβολή 8ef86d1c7c
2 files changed
+4 -5

No files matched your search

@@ -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;
}