summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-04-04 13:22:56 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2014-04-04 13:32:30 -0300
commit1fd9fc00127026b56dbd5cea323a63bdd4e69706 (patch)
treed026ecfba94fe702bef6001fd6ceedac05accd7c
parentabba92d9cff1ab9a3b492f9742e8cd1b3f669800 (diff)
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>
-rw-r--r--tests/pm_pc8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c
index 175cb2d0..010af44f 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,