All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Carlos Eduardo Gallo Filho <gcarlos@disroot.org>,
	dri-devel@lists.freedesktop.org
Cc: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Maíra Canal" <mairacanal@riseup.net>,
	"André Almeida" <andrealmeid@igalia.com>,
	"Arthur Grillo" <arthurgrillo@riseup.net>,
	"Tales Lelo da Aparecida" <tales.aparecida@gmail.com>,
	"Carlos Eduardo Gallo Filho" <gcarlos@disroot.org>
Subject: Re: [PATCH v4 RESEND 8/9] drm/tests: Add test for drm_framebuffer_init()
Date: Mon, 16 Sep 2024 11:48:58 +0300	[thread overview]
Message-ID: <87wmjcc7b9.fsf@intel.com> (raw)
In-Reply-To: <20240911001559.28284-9-gcarlos@disroot.org>

On Tue, 10 Sep 2024, Carlos Eduardo Gallo Filho <gcarlos@disroot.org> wrote:
> +/* Try to init a framebuffer without setting its format */
> +static void drm_test_framebuffer_init_bad_format(struct kunit *test)
> +{
> +	struct drm_framebuffer_test_priv *priv = test->priv;
> +	struct drm_device *dev = &priv->dev;
> +	struct drm_framebuffer fb1 = { .dev = dev, .format = NULL };
> +	struct drm_framebuffer_funcs funcs = { };
> +	int ret;
> +
> +	/* Fails if fb.format isn't set */
> +	ret = drm_framebuffer_init(dev, &fb1, &funcs);

Not only does this fail, it spits a WARN_ON_ONCE() in dmesg. Which in
turn gets flagged as a failure in the test in our CI.

What's the policy with kunit tests causing warnings? I think it's
reasonable for any CI to flag dmesg warnings. We shouldn't be hitting
those. Filtering the warnigs is a tricky business.

BR,
Jani.



> +	KUNIT_EXPECT_EQ(test, ret, -EINVAL);
> +}

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-09-16  8:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-11  0:15 [PATCH v4 RESEND 0/9] Increase coverage on drm_framebuffer.c Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 1/9] drm/tests: Stop using deprecated dev_private member on drm_framebuffer tests Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 2/9] drm/tests: Add parameters to the drm_test_framebuffer_create test Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 3/9] drm/tests: Replace strcpy to strscpy on " Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 4/9] drm/tests: Add test case for drm_internal_framebuffer_create() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 5/9] drm/tests: Add test for drm_framebuffer_check_src_coords() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 6/9] drm/tests: Add test for drm_framebuffer_cleanup() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 7/9] drm/tests: Add test for drm_framebuffer_lookup() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 8/9] drm/tests: Add test for drm_framebuffer_init() Carlos Eduardo Gallo Filho
2024-09-16  8:48   ` Jani Nikula [this message]
2024-09-11  0:15 ` [PATCH v4 RESEND 9/9] drm/tests: Add test for drm_framebuffer_free() Carlos Eduardo Gallo Filho
2024-09-11 12:19 ` [PATCH v4 RESEND 0/9] Increase coverage on drm_framebuffer.c Maxime Ripard
2024-09-13  7:31   ` Jani Nikula
2024-09-13  7:41     ` Maxime Ripard
2024-09-13  9:13       ` Jani Nikula

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=87wmjcc7b9.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=airlied@gmail.com \
    --cc=andrealmeid@igalia.com \
    --cc=arthurgrillo@riseup.net \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gcarlos@disroot.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mairacanal@riseup.net \
    --cc=mripard@kernel.org \
    --cc=tales.aparecida@gmail.com \
    --cc=tzimmermann@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.