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 <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2014-04-04 13:22:56 -03:00
parent abba92d9cf
commit 1fd9fc0012

View File

@ -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,