tests/kms_flip: don't leak gpu hang state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 6 Apr 2013 16:29:37 +0000 (18:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 6 Apr 2013 16:30:19 +0000 (18:30 +0200)
commit1677c2129113adfd7cda766548b09e0bfec10b3e
tree01f943f2b668a6a4b934106c995935a84fd909d1
parentc97a45ff098ba1e9772b5d1ebeedf52ec2b64652
tests/kms_flip: don't leak gpu hang state

We need to clear out the error_state. While at it also make sure that
the hang was indeed detected.

Whoever writes the next test to race against gpu hangs should probably
extract these two functions into the drmtest library. Which just one
user that's not really worth it right now.

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