SWDEV-446760 - check image support before running array tests
Change-Id: I1eca9bdbfb20567137c7c17ab649555938fc6e60
[ROCm/hip-tests commit: ec11b79b12]
This commit is contained in:
gecommit door
Rakesh Roy
bovenliggende
c9991341dc
commit
4b6fb4fff4
@@ -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)));
|
||||
}
|
||||
|
||||
Verwijs in nieuw issue
Block a user