[igt-dev] [PATCH i-g-t] igt/pm_backlight: Require a connected output for the backlight

Chris Wilson chris at chris-wilson.co.uk
Tue Sep 4 21:34:48 UTC 2018


We cannot control the backlight if its attached output is not connected.
Don't assert, but require.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/pm_backlight.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/pm_backlight.c b/tests/pm_backlight.c
index 33614e969..e94340a2b 100644
--- a/tests/pm_backlight.c
+++ b/tests/pm_backlight.c
@@ -225,7 +225,9 @@ igt_main
 			break;
 		}
 
-		igt_assert_f(found, "Could not map \"%s\" to output (%s?)\n", name, name + 6);
+		igt_require_f(found,
+			      "Could not map backlight for \"%s\" to connected output\n",
+			      name);
 
 		igt_output_set_pipe(output, pipe);
 		mode = igt_output_get_mode(output);
-- 
2.19.0.rc1



More information about the igt-dev mailing list