From 18d4fc460bece185769966108c6696a73c1757b2 Mon Sep 17 00:00:00 2001 From: vstojilj Date: Wed, 5 Nov 2025 09:31:30 +0100 Subject: [PATCH] SWDEV-541362 - Fix error code mismatch in test (#1377) --- .../hip-tests/catch/unit/module/hipDrvLaunchKernelEx.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/module/hipDrvLaunchKernelEx.cc b/projects/hip-tests/catch/unit/module/hipDrvLaunchKernelEx.cc index 45cd16461c..58d8ae2958 100644 --- a/projects/hip-tests/catch/unit/module/hipDrvLaunchKernelEx.cc +++ b/projects/hip-tests/catch/unit/module/hipDrvLaunchKernelEx.cc @@ -120,9 +120,12 @@ TEST_CASE("Unit_hipDrvLaunchKernelEx_NegTsts") { invalidConfig.attrs = &invalidAttr; invalidConfig.numAttrs = 1; + hipError_t err = hipErrorInvalidConfiguration; +#if HT_NVIDIA + err = hipErrorInvalidValue; +#endif SECTION("Invalid Kernel config") { - HIP_CHECK_ERROR(hipDrvLaunchKernelEx(&invalidConfig, function, kernelParams, NULL), - hipErrorInvalidConfiguration); + HIP_CHECK_ERROR(hipDrvLaunchKernelEx(&invalidConfig, function, kernelParams, NULL), err); } HIP_CHECK(hipModuleUnload(module));