[igt-dev] [PATCH i-g-t] tests/i915/gem_basic: Added test description for test case

sai.gowtham.ch at intel.com sai.gowtham.ch at intel.com
Tue Sep 1 03:56:14 UTC 2020


From: sai gowtham <sai.gowtham.ch at intel.com>

Added test description for test and to all the available subtests.

Cc: Melkaveri, Arjun <Arjun.Melkaveri at intel.com>
Signed-off-by: sai gowtham <sai.gowtham.ch at intel.com>
---
 tests/i915/gem_basic.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/tests/i915/gem_basic.c b/tests/i915/gem_basic.c
index 9f7412f2..2f76ee26 100644
--- a/tests/i915/gem_basic.c
+++ b/tests/i915/gem_basic.c
@@ -37,14 +37,13 @@
 #include <sys/ioctl.h>
 #include "drm.h"
 
+IGT_TEST_DESCRIPTION("Tests basic gem_create and gem_close IOCTLs");
 static void
 test_bad_close(int fd)
 {
 	struct drm_gem_close close_bo;
 	int ret;
 
-	igt_info("Testing error return on bad close ioctl.\n");
-
 	close_bo.handle = 0x10101010;
 	ret = ioctl(fd, DRM_IOCTL_GEM_CLOSE, &close_bo);
 
@@ -56,8 +55,6 @@ test_create_close(int fd)
 {
 	uint32_t handle;
 
-	igt_info("Testing creating and closing an object.\n");
-
 	handle = gem_create(fd, 16*1024);
 
 	gem_close(fd, handle);
@@ -66,7 +63,6 @@ test_create_close(int fd)
 static void
 test_create_fd_close(int fd)
 {
-	igt_info("Testing closing with an object allocated.\n");
 
 	gem_create(fd, 16*1024);
 	/* leak it */
@@ -81,10 +77,13 @@ igt_main
 	igt_fixture
 		fd = drm_open_driver(DRIVER_INTEL);
 
+	igt_describe("Testing error return on bad close ioctl.\n");
 	igt_subtest("bad-close")
 		test_bad_close(fd);
+	igt_describe("Testing creating and closing an object.\n");
 	igt_subtest("create-close")
 		test_create_close(fd);
+	igt_describe("Testing closing with an object allocated.\n");
 	igt_subtest("create-fd-close")
 		test_create_fd_close(fd);
 }
-- 
2.25.0



More information about the igt-dev mailing list