From 959d6f95cb1344e0c0dace5b236e17755826fac1 Mon Sep 17 00:00:00 2001 From: José Roberto de Souza Date: Fri, 12 Oct 2018 14:28:27 -0700 Subject: tests: Skip testdisplay when KMS is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test should be skiped when KMS is disabled. Cc: Chris Wilson Signed-off-by: José Roberto de Souza Reviewed-by: Chris Wilson Signed-off-by: Rodrigo Vivi --- tests/testdisplay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/testdisplay.c') diff --git a/tests/testdisplay.c b/tests/testdisplay.c index b13c3d70..9972fb3c 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -457,10 +457,7 @@ int update_display(bool probe) int c; resources = drmModeGetResources(drm_fd); - if (!resources) { - igt_warn("drmModeGetResources failed: %s\n", strerror(errno)); - return 0; - } + igt_require(resources); connectors = calloc(resources->count_connectors, sizeof(struct connector)); -- cgit v1.2.3