summaryrefslogtreecommitdiff
path: root/tests/gem_fd_exhaustion.c
AgeCommit message (Collapse)Author
2014-03-23lib: extract igt_aux.[hc]Daniel Vetter
And shovel all the various helpers in there. Also move igt_set_vt_graphics_mode to igt_kms.h since the function is implemented in igt_kms.c. And it fits better. I kinda missed this in the prep work. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-19tests/gem_fd_exhaustion: Make it workDaniel Vetter
- We need to drop root to actually hit the limits. This requires us to fork the actual test since otherwise the exit handlers (which require root) fail the entire test. - Don't assert that the gem create ioctl succeeds, it won't on the final run of the loop. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-19tests: Add gem_fd_exhaustionDaniel Vetter
Exhausts the system limit on open files and then tries to create a new shmem-backed gem object. Linus Torvalds reported that this blows up on a null obj->base.filp, but I can't reproduce this here: http://lists.freedesktop.org/archives/intel-gfx/2014-January/038433.html Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>