tests: use drm_open_any more

And fix it up to not leak open fds, which kills all the master only
stuff.
This commit is contained in:
Daniel Vetter
2012-05-22 12:01:36 +02:00
parent a5e6897d10
commit 0732cc59ab
3 changed files with 8 additions and 39 deletions
+1
View File
@@ -171,6 +171,7 @@ int drm_get_card(int master)
if (is_intel(fd) && master == 0) {
gem_quiescent_gpu(fd);
close(fd);
break;
}