From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id BE59710E439 for ; Fri, 17 Feb 2023 08:18:12 +0000 (UTC) From: Swati Sharma To: igt-dev@lists.freedesktop.org Date: Fri, 17 Feb 2023 13:50:16 +0530 Message-Id: <20230217082017.27753-3-swati2.sharma@intel.com> In-Reply-To: <20230217082017.27753-1-swati2.sharma@intel.com> References: <20230217082017.27753-1-swati2.sharma@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 2/3] tests/kms_plane_scaling: Minor fixes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Minor fixes are done in the existing test. v2: -indentation (JP) -added invalid_parameter_tests() inside igt_subtest_group macro (JP) Signed-off-by: Swati Sharma --- tests/kms_plane_scaling.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index ecb4087f4..795e3daaf 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -931,9 +931,9 @@ static void invalid_parameter_tests(data_t *d) plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); igt_create_fb(d->drm_fd, 256, 256, - DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_NONE, - &fb); + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_NONE, + &fb); } igt_describe("test parameters which should not be accepted"); @@ -943,14 +943,13 @@ static void invalid_parameter_tests(data_t *d) igt_plane_set_position(plane, 0, 0); igt_plane_set_fb(plane, &fb); igt_plane_set_size(plane, - paramtests[i].planesize[0], - paramtests[i].planesize[1]); - + paramtests[i].planesize[0], + paramtests[i].planesize[1]); for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++) igt_plane_set_prop_value(plane, - paramtests[i].params[j].prop, - paramtests[i].params[j].value); + paramtests[i].params[j].prop, + paramtests[i].params[j].value); rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC); @@ -1128,7 +1127,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) igt_subtest_f("2x-scaler-multi-pipe") test_scaler_with_multi_pipe_plane(&data); - invalid_parameter_tests(&data); + igt_subtest_group + invalid_parameter_tests(&data); igt_fixture { igt_display_fini(&data.display); -- 2.25.1