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));