* [i-g-t] tests/kms_feature_discovery: Add basic sanity test
@ 2023-12-29 10:18 Bhanuprakash Modem
0 siblings, 0 replies; only message in thread
From: Bhanuprakash Modem @ 2023-12-29 10:18 UTC (permalink / raw)
To: igt-dev, swati2.sharma
Add basic sanity test to make sure DRM_IOCTL_MODE_GETRESOURCES is
working fine.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
tests/kms_feature_discovery.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/kms_feature_discovery.c b/tests/kms_feature_discovery.c
index 5bca9ad76..eb762928f 100644
--- a/tests/kms_feature_discovery.c
+++ b/tests/kms_feature_discovery.c
@@ -44,6 +44,9 @@
#include "igt_types.h"
/**
+ * SUBTEST: basic-rte
+ * Description: Basic sanity test to make sure DRM_IOCTL_MODE_GETRESOURCES is working fine.
+ *
* SUBTEST: display
* Description: Make sure that we have display support.
*
@@ -87,6 +90,17 @@ igt_main {
debugfs_fd = igt_debugfs_dir(fd);
}
+ igt_describe("Basic sanity test to make sure DRM_IOCTL_MODE_GETRESOURCES is working fine.");
+ igt_subtest("basic-rte") {
+ drmModeResPtr resources = drmModeGetResources(fd);
+
+ /* Operation not supported on non-display platforms. */
+ if (!resources)
+ igt_assert_eq(errno, EOPNOTSUPP);
+
+ drmModeFreeResources(resources);
+ }
+
igt_subtest_group {
igt_fixture {
igt_display_require(&display, fd);
--
2.40.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-29 10:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-29 10:18 [i-g-t] tests/kms_feature_discovery: Add basic sanity test Bhanuprakash Modem
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox