summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-27 20:24:15 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-23 11:02:28 +0100
commit4fec18e5e0cbbf384b8a49febd9dc650f2712bad (patch)
tree9ed8b28680fd2d164ead33ee4e6be8ef3337140f /lib
parente7d26df4198af40c92292cb4209fd803fa02062f (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_core.c2
1 files changed, 2 insertions, 0 deletions
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;