From 4fec18e5e0cbbf384b8a49febd9dc650f2712bad Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 27 Feb 2015 20:24:15 +0100 Subject: 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 --- lib/igt_core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/igt_core.c b/lib/igt_core.c index 4ae35240..962b878c 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -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; -- cgit v1.2.3