[igt-dev] [PATCH i-g-t] i915/gem_ctx_bad_destroy: Added test description for test case
priyanka.dandamudi at intel.com
priyanka.dandamudi at intel.com
Thu Aug 27 05:18:21 UTC 2020
From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
Added test description for all the available subtests.
Cc: Melkaveri, Arjun <Arjun.Melkaveri at intel.com>
Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
---
tests/i915/gem_ctx_bad_destroy.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/tests/i915/gem_ctx_bad_destroy.c b/tests/i915/gem_ctx_bad_destroy.c
index 50bb9aa0..2ebc5abb 100644
--- a/tests/i915/gem_ctx_bad_destroy.c
+++ b/tests/i915/gem_ctx_bad_destroy.c
@@ -53,18 +53,24 @@ igt_main
}
/* try double destroy */
+ igt_describe("Test tries to destroy context two times "
+ "and checks if second destroy returns (ENOENT)error on no entry or not.");
igt_subtest("double-destroy") {
ctx_id = gem_context_create(fd);
gem_context_destroy(fd, ctx_id);
igt_assert(__gem_context_destroy(fd, ctx_id) == -ENOENT);
}
-
+
+ igt_describe("Test checks if invalid destroy of contextid returns ENOENT or not.");
igt_subtest("invalid-ctx")
igt_assert(__gem_context_destroy(fd, 2) == -ENOENT);
-
+
+ igt_describe("Test checks if destroy of default context returns ENOENT or not.");
igt_subtest("invalid-default-ctx")
igt_assert(__gem_context_destroy(fd, 0) == -ENOENT);
-
+
+ igt_describe("Test checks if invalid pad value is given "
+ "while destroying context returns error or not(EINVAL).");
igt_subtest("invalid-pad") {
struct drm_i915_gem_context_destroy destroy;
--
2.28.0
More information about the igt-dev
mailing list