tests/pm_pc8: skip tests when no screens are connected
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 4 Apr 2014 16:22:56 +0000 (13:22 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 4 Apr 2014 16:32:30 +0000 (13:32 -0300)
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>
tests/pm_pc8.c

index 175cb2d..010af44 100644 (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,