[i-g-t 2/2] lib/igt_kms: Don't abort in lib helper

Bhanuprakash Modem bhanuprakash.modem at intel.com
Tue Sep 17 09:44:22 UTC 2024


Instead of aborting from lib helper, simply return the
status to the caller and let the caller to decide to
abort/skip.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 lib/igt_kms.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 9313e4c27..b40470c02 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -6596,7 +6596,10 @@ bool intel_pipe_output_combo_valid(igt_display_t *display)
 		combo++;
 	}
 
-	igt_assert_f(combo, "At least one pipe/output combo needed.\n");
+	if (!combo) {
+		igt_info("At least one pipe/output combo needed.\n");
+		return false;
+	}
 
 	if (!is_intel_device(display->drm_fd))
 		return true;
-- 
2.43.0



More information about the igt-dev mailing list