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

[ROCm/hip-tests commit: b215381bbe]
此提交包含在:
Manocha, Rahul authored and GitHub committed 2025-06-19 21:11:54 +05:30
1 父節點 976d0574cf
當前提交 91a6727ea6
10 file changed
+17 -68

No files matched your search

+1 -5
查看文件
@@ -80,11 +80,7 @@ TEST_CASE("Unit_hipGetTextureAlignmentOffset_Negative") {
}
SECTION("texture is nullptr") {
#if HT_AMD
HIP_CHECK_ERROR(hipGetTextureAlignmentOffset(&offset, nullptr), hipErrorInvalidValue);
#else
HIP_CHECK_ERROR(hipGetTextureAlignmentOffset(&offset, nullptr), hipErrorInvalidTexture);
#endif
HIP_CHECK_ERROR(hipGetTextureAlignmentOffset(&offset, nullptr), hipErrorInvalidTexture);
}
HIP_CHECK(hipFree(tex_buf));