[PATCH i-g-t] kms_psr2_su: Fix igt_fixture handling
Jouni Högander
jouni.hogander at intel.com
Mon Jan 17 08:25:20 UTC 2022
Igt_fixture is in a loop for different operations. This is causing
display_fini being called at the end of each iteration and
triggering SIGSEGV. Fix this by removing igt_fixture out from
the loop.
Fixes: 6be8feeb148e (tests/kms_psr2_su: add biplanar selective update tests)
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
tests/i915/kms_psr2_su.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/i915/kms_psr2_su.c b/tests/i915/kms_psr2_su.c
index d79a1e58..474b1dfd 100644
--- a/tests/i915/kms_psr2_su.c
+++ b/tests/i915/kms_psr2_su.c
@@ -327,10 +327,9 @@ igt_main
cleanup(&data);
}
}
-
- igt_fixture {
- close(data.debugfs_fd);
- display_fini(&data);
- }
+ }
+ igt_fixture {
+ close(data.debugfs_fd);
+ display_fini(&data);
}
}
--
2.34.0
More information about the Intel-gfx-trybot
mailing list