tests/drv_hangman: Add subtest for error state capture/dump
authorMika Kuoppala <mika.kuoppala@intel.com>
Tue, 20 May 2014 08:25:48 +0000 (11:25 +0300)
committerMika Kuoppala <mika.kuoppala@intel.com>
Thu, 22 May 2014 11:29:49 +0000 (14:29 +0300)
commit6fa1934a1991ec30b4f72359cb51d043b374bf43
treed68957867f24a8adf3cec1706fe1953f28e84722
parent9b0d3481e80670ccc27925a6ada05bb36a665b05
tests/drv_hangman: Add subtest for error state capture/dump

Guarantees that error capture works at a very basic level.

v2: Also check that the ring object contains a reloc with MI_BB_START
for the presumed batch object's address.

v3: Chris review comments:
 - Move variables to local scope.
 - Do not assume there is only one request.
 - Some gen encode flags into the BB start address.
 Also, use igt_set/get_stop_rings as suggested by Mika Kuoppala.

v4: Make as a subtest of drv_hangman.
v5: Rebase

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> <v4>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
tests/drv_hangman.c