SWDEV-446760 - check image support before running array tests

Change-Id: I1eca9bdbfb20567137c7c17ab649555938fc6e60
This commit is contained in:
Jatin Chaudhary
2024-02-21 16:03:53 +00:00
committad av Rakesh Roy
förälder 4c0bf68dd9
incheckning ec11b79b12
2 ändrade filer med 4 tillägg och 0 borttagningar
@@ -40,6 +40,8 @@ THE SOFTWARE.
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipCreateSurfaceObject_Negative_Parameters") {
CHECK_IMAGE_SUPPORT
hipArray_t array;
hipChannelFormatDesc desc = hipCreateChannelDesc<float>();
@@ -40,6 +40,8 @@ THE SOFTWARE.
* - HIP_VERSION >= 5.7
*/
TEST_CASE("Unit_hipDestroySurfaceObject_Negative_Parameters") {
CHECK_IMAGE_SUPPORT
SECTION("surfObject is NULL") {
HIP_CHECK(hipDestroySurfaceObject(static_cast<hipSurfaceObject_t>(0)));
}