Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Maíra Canal" <mcanal@igalia.com>
To: Melissa Wen <mwen@igalia.com>,
	Petri Latvala <adrinael@adrinael.net>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
	Swati Sharma <swati2.sharma@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/3] tests/kms_plane_scaling: negative tests can return -EINVAL or -ERANGE
Date: Mon, 24 Apr 2023 15:33:58 -0300	[thread overview]
Message-ID: <20230424183400.465464-1-mcanal@igalia.com> (raw)

Similar to the subtest invalid-parameters, when the display commit fails
due to invalid parameters, the commit can return -EINVAL ou -ERANGE, not
only -EINVAL.

Fixes: 2372a4beb ("tests/kms_plane_scaling: Add negative test to check num of scalers")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
---
 tests/kms_plane_scaling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 5008cd93..302fffcd 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -838,7 +838,7 @@ test_invalid_num_scalers(data_t *d, enum pipe pipe, igt_output_t *output)
 	 * */
 	ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
 	igt_skip_on_f(ret == 0, "Cannot test handling of too many scaling ops, the device supports a large amount.\n");
-	igt_assert_eq(ret, -EINVAL);
+	igt_assert(ret == -EINVAL || ret == -ERANGE);
 
 	/* cleanup */
 	igt_plane_set_fb(plane[0], NULL);
-- 
2.40.0

             reply	other threads:[~2023-04-24 18:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 18:33 Maíra Canal [this message]
2023-04-24 18:33 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: fix variable misspelling Maíra Canal
2023-04-25  7:55   ` Kamil Konieczny
2023-04-24 18:34 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_plane_scaling: remove unused parameters Maíra Canal
2023-04-25  9:09   ` Kamil Konieczny
2023-04-24 19:50 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/kms_plane_scaling: negative tests can return -EINVAL or -ERANGE Patchwork
2023-04-25  0:23 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-04-25  9:00 ` [igt-dev] [PATCH i-g-t 1/3] " Kamil Konieczny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230424183400.465464-1-mcanal@igalia.com \
    --to=mcanal@igalia.com \
    --cc=adrinael@adrinael.net \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=mwen@igalia.com \
    --cc=swati2.sharma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox