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
orang tua 6c60fcafd8
melakukan b215381bbe
10 mengubah file dengan 17 tambahan dan 68 penghapusan
@@ -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");
@@ -355,7 +355,7 @@ TEST_CASE("Unit_hipPeekAtLastError_With_EnvVar_Kernel_Invalid_Config") {
int *A_d;
HIP_CHECK(hipMalloc(&A_d, 1024));
ret = hipPeekAtLastError();
REQUIRE(ret == hipErrorInvalidValue);
REQUIRE(ret == hipErrorInvalidConfiguration);
HIP_CHECK(hipFree(A_d));
unsetenv("DEBUG_HIP_7_PREVIEW");
}