From 1fd9fc00127026b56dbd5cea323a63bdd4e69706 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 4 Apr 2014 13:22:56 -0300 Subject: [PATCH] tests/pm_pc8: skip tests when no screens are connected Instead of failing, just skip the tests. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73642 Signed-off-by: Paulo Zanoni --- tests/pm_pc8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index 175cb2d..010af44 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -355,7 +355,8 @@ static bool enable_one_screen_with_type(struct mode_set_data *data, static void enable_one_screen(struct mode_set_data *data) { - igt_assert(enable_one_screen_with_type(data, SCREEN_TYPE_ANY)); + /* SKIP if there are no connected screens. */ + igt_require(enable_one_screen_with_type(data, SCREEN_TYPE_ANY)); } static drmModePropertyBlobPtr get_connector_edid(drmModeConnectorPtr connector, -- 2.7.4