From: Daniel Vetter Date: Tue, 11 Feb 2014 23:07:11 +0000 (+0100) Subject: lib: install exit handler only on success for prefault control X-Git-Tag: intel-gpu-tools-1.6~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d1084fe3f88e2b51c50ff963a2ae81a6129474d;p=platform%2Fupstream%2Fintel-gpu-tools.git 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 --- diff --git a/lib/drmtest.c b/lib/drmtest.c index 28651ce..f6e6ccb 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)