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
2024-02-27 16:49:22 -05:00
コミット 8ef86d1c7c
2個のファイルの変更、4行の追加、5行の削除
+2 -2
ファイルの表示
@@ -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;
}