SWDEV-538600 - Fix error code checks in some tests (#305)

This commit is contained in:
Manocha, Rahul
2025-06-19 08:41:54 -07:00
committed by GitHub
parent 6c60fcafd8
commit b215381bbe
10 changed files with 17 additions and 68 deletions
+1 -1
View File
@@ -1219,7 +1219,7 @@ TEST_CASE("Unit_hipGetLastError_With_EnvVar_Kernel_Invalid_Config") {
int *A_d;
HIP_CHECK(hipMalloc(&A_d, 1024));
ret = hipGetLastError();
REQUIRE(ret == hipErrorInvalidValue);
REQUIRE(ret == hipErrorInvalidConfiguration);
HIP_CHECK_ERROR(hipGetLastError(), hipSuccess);
HIP_CHECK(hipFree(A_d));
unsetenv("DEBUG_HIP_7_PREVIEW");