[igt-dev] [i-g-t 2/2] tests/kms_feature_discovery: update display-1x

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Nov 23 08:33:18 UTC 2023


Hi Bhanuprakash,
On 2023-11-21 at 13:24:51 +0530, Bhanuprakash Modem wrote:
> From: Swati Sharma <swati2.sharma at intel.com>
> 
> 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>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.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.40.0
> 


More information about the igt-dev mailing list