From 0d1084fe3f88e2b51c50ff963a2ae81a6129474d Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 12 Feb 2014 00:07:11 +0100 Subject: lib: install exit handler only on success for prefault control 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 --- lib/drmtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 28651cee..f6e6ccbe 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) -- cgit v1.2.3