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

[ROCm/hip-tests commit: b215381bbe]
This commit is contained in:
Manocha, Rahul authored and GitHub committed 2025-06-19 21:11:54 +05:30
1 parent 976d0574cf
commit 91a6727ea6
10 files changed
+17 -68

No files matched your search

@@ -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));