summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-09-04 22:33:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-09-05 09:21:51 +0100
commit5e4545ff2b1f73ac257adcf9a9aeb729419ed60d (patch)
tree96a5e0f95411de7280ac830e908cf235f924f3af
parentc829766f3651c207e6fa4d38aaa7359ae276fb6c (diff)
igt/pm_backlight: Require a connected output for the backlight
We cannot control the backlight if its attached output is not connected. Don't assert, but require. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
-rw-r--r--tests/pm_backlight.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/pm_backlight.c b/tests/pm_backlight.c
index 8b5c79db..4c0399d4 100644
--- a/tests/pm_backlight.c
+++ b/tests/pm_backlight.c
@@ -211,7 +211,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);