[PATCH 1/2] dumb_buffer: Remove invalid-bpp subtest

Rob Clark robdclark at gmail.com
Wed Aug 14 18:54:25 UTC 2024


From: Rob Clark <robdclark at chromium.org>

These allocations are not necessarily invalid.

Signed-off-by: Rob Clark <robdclark at chromium.org>
---
 tests/dumb_buffer.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tests/dumb_buffer.c b/tests/dumb_buffer.c
index 1d4bf296c53e..579d2f906b6d 100644
--- a/tests/dumb_buffer.c
+++ b/tests/dumb_buffer.c
@@ -136,25 +136,6 @@ static void dumb_destroy(int fd, uint32_t handle)
 	igt_assert_eq(__dumb_destroy(fd, handle), 0);
 }
 
-static void invalid_dimensions_test(int fd)
-{
-	struct drm_mode_create_dumb create;
-
-	memset(&create, 0, sizeof(create));
-	create.width = 4032;
-	create.height = 2016;
-	create.bpp = 24;
-	igt_assert_eq(__dumb_create(fd, &create), -EINVAL);
-
-	create.bpp = 32;
-	create.width = 0;
-	igt_assert_eq(__dumb_create(fd, &create), -EINVAL);
-
-	create.width = 4032;
-	create.height = 0;
-	igt_assert_eq(__dumb_create(fd, &create), -EINVAL);
-}
-
 static void valid_dumb_creation_test(int fd)
 {
 	struct drm_mode_create_dumb create = {
@@ -397,9 +378,6 @@ igt_main
 		fd = drm_open_driver(DRIVER_ANY);
 	}
 
-	igt_subtest("invalid-bpp")
-		invalid_dimensions_test(fd);
-
 	igt_subtest("create-valid-dumb")
 		valid_dumb_creation_test(fd);
 
-- 
2.46.0



More information about the igt-dev mailing list