From d632c8272e32cbe702d8a379e92268d94b414bcb Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 11 Oct 2022 09:56:00 +0530 Subject: [PATCH] SWDEV-1 - Add missing checks in hipMemset2D.cc --- tests/catch/unit/memory/hipMemset2D.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/catch/unit/memory/hipMemset2D.cc b/tests/catch/unit/memory/hipMemset2D.cc index e48b8931f0..2b2cb0463d 100644 --- a/tests/catch/unit/memory/hipMemset2D.cc +++ b/tests/catch/unit/memory/hipMemset2D.cc @@ -78,7 +78,7 @@ TEST_CASE("Unit_hipMemset2D_BasicFunctional") { } } - hipFree(A_d); + HIP_CHECK(hipFree(A_d)); free(A_h); } @@ -120,7 +120,7 @@ TEST_CASE("Unit_hipMemset2DAsync_BasicFunctional") { } } - hipFree(A_d); + HIP_CHECK(hipFree(A_d)); HIP_CHECK(hipStreamDestroy(stream)); free(A_h); } @@ -169,7 +169,7 @@ TEST_CASE("Unit_hipMemset2D_UniqueWidthHeight") { } } - hipFree(A_d); + HIP_CHECK(hipFree(A_d)); free(A_h); }