tests/gem_flink: check flink lifetime rules
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 1 Dec 2012 12:07:45 +0000 (13:07 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 1 Dec 2012 12:07:45 +0000 (13:07 +0100)
commit6daae8bcb6b4a930c9677f87fa24675581b69072
treea6ab34c38c1103ccaf6294ef25487cac03fa68be
parentd8df90dc6bce77842c781aa0907147cecce4b5f6
tests/gem_flink: check flink lifetime rules

flink names may not be destroyed while there's still a userspace
handle around. Test this by
- exporting an flink name from fd2
- open a gem bo from that name in fd
- close fd2, then open a new drm file (so that the original handle
  disappears)
- check whether the same flink name still works
tests/gem_flink.c