From ae9c685133c5a1f30418d6fda1ce898c11c7053c Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi Date: Tue, 9 Dec 2014 20:44:11 -0500 Subject: lib/igt_aux: Introduce igt_interactive_debug_manual_check. This is an extention of igt_debug_wait_for_keypress that also can have customized message and return key pressed. v2: This is actualy a v2. V1 was an extension of original igt_debug_wait_for_keypress but it was nacked. v3: Make [Y/n] check inside aux function as suggested by Daniel. Also renaming and adding first use case along with the axu function. v4: Simplify function name and make it assert pressed key is different from n/N as suggested by Daniel. Cc: Daniel Vetter Signed-off-by: Rodrigo Vivi --- lib/igt_aux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 0c361f26..7a5078b0 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -63,6 +63,7 @@ void igt_system_hibernate_autoresume(void); void igt_drop_root(void); void igt_debug_wait_for_keypress(const char *var); +void igt_debug_manual_check(const char *var, const char *expected); enum igt_runtime_pm_status { IGT_RUNTIME_PM_STATUS_ACTIVE, -- cgit v1.2.3