[SWDEV-445928] - hipPointerSetAttribute Test fix

Change-Id: I1e5deb9485c40dc69fd6b92840001f7416a2fa64


[ROCm/hip-tests commit: b817121403]
This commit is contained in:
Rahul Manocha
2024-05-01 15:26:16 -07:00
کامیت شده توسط Rakesh Roy
والد e3173e2b51
کامیت ae8bf93281
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
@@ -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",
@@ -76,7 +76,7 @@ TEST_CASE("Unit_hipPointerSetAttribute_Positive_SyncMemops") {
*/
TEST_CASE("Unit_hipPointerSetAttribute_Negative_Parameters") {
LinearAllocGuard<int> 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()),