diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-12 00:07:11 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-12 00:07:19 +0100 |
commit | 0d1084fe3f88e2b51c50ff963a2ae81a6129474d (patch) | |
tree | 74493e0292892bdeb5f5dd0b845e7700224f0e00 /lib/drmtest.c | |
parent | 58633cfde46cb6010b3bdeeca58a52ec536ff66c (diff) |
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 <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |