tests: Add gem_fd_exhaustion
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 19 Jan 2014 17:01:24 +0000 (18:01 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 19 Jan 2014 17:01:24 +0000 (18:01 +0100)
commit70082e3677711bc01330ba3483fbdce5779f915d
treed7ecaf147349a47ecc93665508a6947ceb541fc9
parent36106004e0e590557041e491fe690f01c89bc115
tests: Add gem_fd_exhaustion

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>
tests/.gitignore
tests/Makefile.sources
tests/gem_fd_exhaustion.c [new file with mode: 0644]