From 923d9a0ff50260a647cbe57c22016021f6261d7e Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Wed, 21 Feb 2018 11:31:21 +0100 Subject: tests/kms_rmfb: Use for_each_pipe_with_single_output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A single output on every pipe will do for testing. Signed-off-by: Maarten Lankhorst Reviewed-by: Ville Syrjälä --- tests/kms_rmfb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/kms_rmfb.c') 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") -- cgit v1.2.3