[igt-dev] [PATCH i-g-t 2/2] tests: Skip testdisplay when KMS is disabled
José Roberto de Souza
jose.souza at intel.com
Fri Oct 12 21:28:27 UTC 2018
This test should be skiped when KMS is disabled.
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: José Roberto de Souza <jose.souza at 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
More information about the igt-dev
mailing list