[Intel-gfx] [PATCH 6/7] lib: install exit handler only on success for prefault control

Daniel Vetter daniel.vetter at ffwll.ch
Wed Feb 12 00:07:30 CET 2014


Otherwise we'll hit an igt_skip in the exit handler, which upsets
the new in_fixture||in_subtests checks.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 lib/drmtest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index 28651cee3da7..f6e6ccbee84a 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -1672,9 +1672,9 @@ static void enable_prefault_at_exit(int sig)
 
 void igt_disable_prefault(void)
 {
-	igt_install_exit_handler(enable_prefault_at_exit);
-
 	igt_prefault_control(false);
+
+	igt_install_exit_handler(enable_prefault_at_exit);
 }
 
 void igt_enable_prefault(void)
-- 
1.8.5.2




More information about the Intel-gfx mailing list