[Intel-gfx] [PATCH] tests/kms_flip: don't leak gpu hang state

2013-04-08 Thread Daniel Vetter
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. v2: Fill cpu c

[Intel-gfx] [PATCH] tests/kms_flip: don't leak gpu hang state

2013-04-06 Thread Daniel Vetter
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: