SWDEV-541362 - Fix error code mismatch in test (#1377)

Tento commit je obsažen v:
vstojilj
2025-11-05 09:31:30 +01:00
odevzdal GitHub
rodič 7d078b9875
revize 18d4fc460b
+5 -2
Zobrazit soubor
@@ -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));