lib/core: add interactive debug point to igt_fail

Useful for inspecting the screen state in kms tests when they fail.

Also move the screen clearing in kms_cursor_crc to the bottom.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
Daniel Vetter
2015-02-27 20:24:15 +01:00
parent e7d26df419
commit 4fec18e5e0
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -918,6 +918,8 @@ void igt_fail(int exitcode)
{
assert(exitcode != IGT_EXIT_SUCCESS && exitcode != IGT_EXIT_SKIP);
igt_debug_wait_for_keypress("failure");
if (!failed_one)
igt_exitcode = exitcode;