tests/kms_flip: Check if is Intel device before doing all the setup
The tests bo-too-big and bo-too-big-interruptible should only run on Intel devices. Instead of checking this condition after doing all the setup, check this condition in the beginning of the test. Checking if is an Intel device in the beginning of the test will also avoid the following error, which occurs in non-Intel devices when running the test bo-too-big: (kms_flip:1641) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:1960: (kms_flip:1641) igt_kms-CRITICAL: Failed assertion: found_it (kms_flip:1641) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor (kms_flip:1641) igt_kms-CRITICAL: DPMS property not found on 36 Stack trace: #0 ../lib/igt_core.c:1963 __igt_fail_assert() #1 ../lib/igt_kms.c:1960 kmstest_set_connector_dpms() #2 ../lib/igt_core.c:2831 igt_atexit_handler() #3 /usr/src/debug/glibc-2.36-9.fc37.x86_64/stdlib/exit.c:114 __run_exit_handlers() #4 /usr/src/debug/glibc-2.36-9.fc37.x86_64/stdlib/fmtmsg.c:292 internal_addseverity() #5 ../lib/igt_core.c:2297 igt_exit() #6 [main+0x32] #7 ../sysdeps/nptl/libc_start_call_main.h:74 __libc_start_call_main() #8 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34() #9 [_start+0x25] Signed-off-by:Maíra Canal <mcanal@igalia.com> Reviewed-by:
Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Please register or sign in to comment