SWDEV-538600 - Fix error code checks in some tests (#305)
[ROCm/hip-tests commit: b215381bbe]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
976d0574cf
tiomantas
91a6727ea6
10 comhad athraithe
+17
-68
Níor tháinig aon chomhaid le do chuardach
@@ -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));
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir