From 0732cc59abc06151b8756a6890f13885cde7403b Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 22 May 2012 12:01:36 +0200 Subject: tests: use drm_open_any more And fix it up to not leak open fds, which kills all the master only stuff. --- lib/drmtest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/drmtest.c b/lib/drmtest.c index fc2f1a81..b6aae37b 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -171,6 +171,7 @@ int drm_get_card(int master) if (is_intel(fd) && master == 0) { gem_quiescent_gpu(fd); + close(fd); break; } -- cgit v1.2.3