tests/gem_flink_race: actually make it somewhat useful
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 07:46:57 +0000 (09:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 10:52:01 +0000 (12:52 +0200)
commit24bbca9237cbb6bd5e85db839dc517db65e693e8
treed00e9d90e1f08db8630b05e3d61a995b62c5a6b8
parentdfe942edec1a713568a19e15ce75e1ed01b9fb08
tests/gem_flink_race: actually make it somewhat useful

- Enable subtest support.

- Add a check for the same flink name in the racing threads, which is
  an issue one of my recent patches actually fixes.

- Add the test I've actually wanted to write which races an flink
  against gem close (with no open in between). That one does indeed
  leak.

- Readd the leak check, but note that this needs a fixed kernel.
  Otherwise the leak counter will be utter garbage.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/Makefile.am
tests/gem_flink_race.c