[igt-dev] [PATCH i-g-t 2/3] tests/kms_feature_discovery: update display-1x
Swati Sharma
swati2.sharma at intel.com
Thu Nov 23 05:28:06 UTC 2023
Use same logic to detect 1x display as 2x, 3x and 4x displays.
Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_feature_discovery.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/kms_feature_discovery.c b/tests/kms_feature_discovery.c
index 81064aa0e..1b192b0bd 100644
--- a/tests/kms_feature_discovery.c
+++ b/tests/kms_feature_discovery.c
@@ -72,7 +72,7 @@
* Mega feature: General Display Features
* Test category: functionality test
*
- * arg[1].values: 2, 3, 4
+ * arg[1].values: 1, 2, 3, 4
*/
#include "igt.h"
@@ -137,6 +137,11 @@ igt_main {
}
}
+ igt_describe("Make sure that we can use at least 1 output at a time.");
+ igt_subtest("display-1x") {
+ igt_require(output_count >= 1);
+ }
+
igt_describe("Make sure that we can use at least 2 outputs at the same time.");
igt_subtest("display-2x") {
igt_require(output_count >= 2);
--
2.25.1
More information about the igt-dev
mailing list