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
zatwierdzone przez GitHub
rodzic 6c60fcafd8
commit b215381bbe
10 zmienionych plików z 17 dodań i 68 usunięć
@@ -65,14 +65,8 @@ TEST_CASE("Unit_hipTexRefSetAddress_Positive") {
}
SECTION("size is 0") {
#if HT_AMD
HIP_CHECK_ERROR(
hipTexRefSetAddress(&offset, tex_ref, reinterpret_cast<hipDeviceptr_t>(tex_buffer), 0),
hipErrorInvalidValue);
#else
HIP_CHECK(
hipTexRefSetAddress(&offset, tex_ref, reinterpret_cast<hipDeviceptr_t>(tex_buffer), 0));
#endif
}
}