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

这个提交包含在:
Manocha, Rahul
2025-06-19 08:41:54 -07:00
提交者 GitHub
父节点 6c60fcafd8
当前提交 b215381bbe
修改 10 个文件,包含 17 行新增68 行删除
-5
查看文件
@@ -130,13 +130,8 @@ TEST_CASE("Unit_hipBindTexture_Negative") {
}
SECTION("Device memory is nullptr") {
#if HT_AMD
HIP_CHECK_ERROR(hipBindTexture(&offset, tex_ref, nullptr, channel_desc, N * sizeof(float)),
hipErrorInvalidValue);
#else
HIP_CHECK_ERROR(hipBindTexture(&offset, tex_ref, nullptr, channel_desc, N * sizeof(float)),
hipErrorNotFound);
#endif
}
SECTION("Invalid hipChannelFormatDesc") {