tests/gem_reset_stats: check gpu state before each subtest
authorMika Kuoppala <mika.kuoppala@intel.com>
Fri, 28 Mar 2014 13:12:14 +0000 (15:12 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Thu, 10 Apr 2014 14:50:49 +0000 (17:50 +0300)
commit53ad1e4a7040c57355b57fc3cdc8d9a003687a32
tree0c637a881e4bade3432e181583a60422226a7511
parent2f2c491cf3167befe7c79e4b17afb4f6284dfc84
tests/gem_reset_stats: check gpu state before each subtest

Some tests, namely the close pending variety, tries to
carefully drop all handles to gpu when hang is intruduced,
to expose bugs in reset handling without any clients.

Add guards after and before tests to really know if
the gpu is still alive as the particular test might
report success and then gpu dies few seconds after.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
tests/gem_reset_stats.c