From 7b40764dfbed779e6e65813d647b8baa011b480f Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 19 Sep 2022 11:19:03 +0530 Subject: [PATCH] SWDEV-341744 - Accept error code hipErrorInvalidDevicePointer in hipTest (#2950) When calling hipIpcOpenMemHandle with an unitialized handle, function can also return hipErrorInvalidDevicePointer Change-Id: Ic55ea9c61edeb998870cf6a34f7c80123569fecb [ROCm/hip-tests commit: c66407bed0ef2b1856a037130ae5f3015f0d2c3d] --- projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc b/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc index 6dd0941b4a..fee23c1ef4 100644 --- a/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc +++ b/projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc @@ -200,7 +200,7 @@ TEST_CASE("Unit_hipIpcMemAccess_ParameterValidation") { SECTION("Open mem handle with handle as un-initialized") { ret = hipIpcOpenMemHandle(&Ad2, MemHandleUninit, hipIpcMemLazyEnablePeerAccess); - REQUIRE(ret == hipErrorInvalidValue); + REQUIRE((ret == hipErrorInvalidValue || ret == hipErrorInvalidDevicePointer)); } #if HT_AMD // Test is disabled for nvidia as api not returning expected value.