tests/kms_3d: skip if connectors cannot be forced
authorThomas Wood <thomas.wood@intel.com>
Thu, 4 Sep 2014 16:00:16 +0000 (17:00 +0100)
committerThomas Wood <thomas.wood@intel.com>
Fri, 5 Sep 2014 15:52:51 +0000 (16:52 +0100)
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
tests/kms_3d.c

index ddf4dc6..c11873b 100644 (file)
@@ -60,7 +60,8 @@ igt_simple_main
                            &length);
 
        kmstest_force_edid(drm_fd, connector, edid, length);
-       kmstest_force_connector(drm_fd, connector, FORCE_CONNECTOR_ON);
+       if (!kmstest_force_connector(drm_fd, connector, FORCE_CONNECTOR_ON))
+               igt_skip("Could not force connector on\n");
 
        connector_id = connector->connector_id;