diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-21 11:31:21 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-03-19 16:01:17 +0100 |
commit | 923d9a0ff50260a647cbe57c22016021f6261d7e (patch) | |
tree | 61ffc1f90fa7a333c6178cc1e591a5749d4a53aa /tests | |
parent | 1ac6480cdd0c3d5aa947289c4758b871e91d7953 (diff) |
tests/kms_rmfb: Use for_each_pipe_with_single_output.
A single output on every pipe will do for testing.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_rmfb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c index c97adcee..f3461cc9 100644 --- a/tests/kms_rmfb.c +++ b/tests/kms_rmfb.c @@ -129,15 +129,10 @@ static void run_rmfb_test(struct rmfb_data *data, bool reopen) { igt_output_t *output; - int valid_tests = 0; enum pipe pipe; - for_each_pipe_with_valid_output(&data->display, pipe, output) { + for_each_pipe_with_single_output(&data->display, pipe, output) test_rmfb(data, output, pipe, reopen); - valid_tests = 1; - } - - igt_require_f(valid_tests, "no valid crtc/connector combinations found\n"); } igt_main @@ -152,6 +147,7 @@ igt_main kmstest_set_vt_graphics_mode(); igt_display_init(&data.display, data.drm_fd); + igt_display_require_output(&data.display); } igt_subtest_f("rmfb-ioctl") |