[PATCH i-g-t] tests/kms_bw: Fix the condition check for max pipe count
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Thu Mar 21 05:24:54 UTC 2024
Fix the condition check to skip the subtest if ASIC doesn't
have the requested number of pipes.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_bw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index 96b19199d..05f7e79ad 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -186,7 +186,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
* not give the numver of valid crtcs and always return IGT_MAX_PIPES */
for_each_pipe(display, p) num_pipes++;
- igt_skip_on_f(pipe > num_pipes,
+ igt_skip_on_f(pipe >= num_pipes,
"ASIC does not have %d pipes\n", pipe);
test_init(data);
--
2.43.2
More information about the igt-dev
mailing list