SWDEV-536652 - Fix Unit_hipBindTextureToArray_Negative_Parameters (#354)

Fix sporadic failure of Unit_hipBindTextureToArray_Negative_Parameters
This commit is contained in:
Sang, Tao authored and GitHub committed 2025-07-02 10:05:52 +05:30
1 parent 863f8828c3
commit 891524ca75
1 file changed
+2 -2
@@ -132,7 +132,7 @@ TEST_CASE("Unit_hipBindTextureToArray_Negative_Parameters") {
#endif
SECTION("invalid channel desc") {
hipChannelFormatDesc invalid_desc;
hipChannelFormatDesc invalid_desc{-1, -1, -1, -1, hipChannelFormatKindSigned};
#if HT_AMD
HIP_CHECK_ERROR(hipBindTextureToArray(tex_2D, hipArray, invalid_desc), hipErrorInvalidValue);
#else
@@ -303,4 +303,4 @@ TEST_CASE("Unit_hipBindTextureToArray_Positive_3D") {
free(data);
}
#endif
#endif