diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux index d75a3358b1..291f9ffde8 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux @@ -49,7 +49,6 @@ "Unit_hipKernelNameRef_Negative_Parameters", "Unit_hipMemAdvise_AccessedBy_All_Devices", "Unit_hipMemAdvise_No_Flag_Interference", - "Unit_hipMemGetAddressRange_Negative", "NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238", "Unit_hipDrvMemcpy3D_Positive_Array", "Unit_hipDrvMemcpy3DAsync_Positive_Array", diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows index 1b6e413953..a4a07b0159 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows @@ -134,7 +134,6 @@ "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep", "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ClonedGrph", "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ChldNode", - "Unit_hipMemGetAddressRange_Negative", "NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238", "Unit_hipDrvMemcpy3D_Positive_Array", "Unit_hipDrvMemcpy3DAsync_Positive_Array", diff --git a/projects/hip-tests/catch/unit/memory/hipMemGetAddressRange.cc b/projects/hip-tests/catch/unit/memory/hipMemGetAddressRange.cc index b8b895a10f..644cac7310 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemGetAddressRange.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemGetAddressRange.cc @@ -105,7 +105,7 @@ TEST_CASE("Unit_hipMemGetAddressRange_Negative") { size_t mem_size = 0; const auto allocation_size = kPageSize / 2; const int offset = kPageSize; - LinearAllocGuard host_alloc(LinearAllocs::hipHostMalloc, allocation_size); + LinearAllocGuard dst_alloc(LinearAllocs::hipMalloc, allocation_size); hipDeviceptr_t dummy_ptr = NULL; @@ -115,7 +115,7 @@ TEST_CASE("Unit_hipMemGetAddressRange_Negative") { SECTION("Offset is greater than allocated size") { HIP_CHECK_ERROR( hipMemGetAddressRange(&base_ptr, &mem_size, - reinterpret_cast(host_alloc.ptr() + offset)), + reinterpret_cast(dst_alloc.ptr() + offset)), hipErrorNotFound); } }