[igt-dev] [PATCH i-g-t 2/2] tests: Skip testdisplay when KMS is disabled

José Roberto de Souza
2018-10-12T21:28:36Z

This test should be skiped when KMS is disabled.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/testdisplay.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

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));
--
2.19.1