SWDEV-538600 - Fix error code checks in some tests (#305)
This commit is contained in:
committed by
GitHub
orang tua
6c60fcafd8
melakukan
b215381bbe
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user