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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux