tests/gem_fd_exhaustion: Make it work
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 19 Jan 2014 21:15:13 +0000 (22:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 19 Jan 2014 21:24:23 +0000 (22:24 +0100)
commit5b9147513029ca1e1eaf2c028e6f868adc3359f6
treeded4e90dd91c0876dcc1e345055ba699599e2aec
parent7d2ba073adef9c4c6f7a679befa2a5d19cbf4735
tests/gem_fd_exhaustion: Make it work

- 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>
tests/gem_fd_exhaustion.c