From b817121403be21bc4f20b5ec74d1dfa99c10196a Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Wed, 1 May 2024 15:26:16 -0700 Subject: [PATCH] [SWDEV-445928] - hipPointerSetAttribute Test fix Change-Id: I1e5deb9485c40dc69fd6b92840001f7416a2fa64 --- catch/hipTestMain/config/config_amd_linux | 1 - catch/unit/memory/hipPointerSetAttribute.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/catch/hipTestMain/config/config_amd_linux b/catch/hipTestMain/config/config_amd_linux index 99316c9aa1..35c2c27603 100644 --- a/catch/hipTestMain/config/config_amd_linux +++ b/catch/hipTestMain/config/config_amd_linux @@ -279,7 +279,6 @@ "Unit_hipDrvGraphAddMemsetNode_hipMalloc_1D", "Unit_hipDrvGraphAddMemsetNode_hipMallocManaged", "Unit_hipDrvGraphAddMemcpyNode_Negative_Parameters", - "Unit_hipPointerSetAttribute_Negative_Parameters", "Unit_hipDrvGetErrorName_Positive_Basic", "Unit_hipDrvGetErrorString_Positive_Basic", "Unit_hipModuleLaunchKernel_Negative_Parameters", diff --git a/catch/unit/memory/hipPointerSetAttribute.cc b/catch/unit/memory/hipPointerSetAttribute.cc index fe1a93011d..22d18fac85 100644 --- a/catch/unit/memory/hipPointerSetAttribute.cc +++ b/catch/unit/memory/hipPointerSetAttribute.cc @@ -76,7 +76,7 @@ TEST_CASE("Unit_hipPointerSetAttribute_Positive_SyncMemops") { */ TEST_CASE("Unit_hipPointerSetAttribute_Negative_Parameters") { LinearAllocGuard mem(LinearAllocs::hipMalloc, 4); - bool value = false; + int value = 0; SECTION("value is nullptr") { HIP_CHECK_ERROR(hipPointerSetAttribute(nullptr, HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS, mem.ptr()),