diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-14 21:10:05 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-01 21:06:56 +0100 |
commit | 7f41adfbfd17027b71c332d6ae997f1364f73731 (patch) | |
tree | bcfffa37a3253c2997b062d82e55c4161170698b /tests/kms_crtc_background_color.c | |
parent | 212b71372bfbb73663d872df31118d6b396ada4f (diff) |
igt: Require a display (KMS enabled) for KMS tests
Simple rule of thumb, if a kms_* test calls igt_display_init() in its
global fixture, skip the entire test if the driver has disabled KMS.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'tests/kms_crtc_background_color.c')
-rw-r--r-- | tests/kms_crtc_background_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_crtc_background_color.c b/tests/kms_crtc_background_color.c index 6407e19b..3df3401f 100644 --- a/tests/kms_crtc_background_color.c +++ b/tests/kms_crtc_background_color.c @@ -180,7 +180,7 @@ igt_simple_main data.gfx_fd = drm_open_driver(DRIVER_INTEL); igt_require_pipe_crc(data.gfx_fd); - igt_display_init(&data.display, data.gfx_fd); + igt_display_require(&data.display, data.gfx_fd); test_crtc_background(&data); |