Re: [PATCH v4 RESEND 8/9] drm/tests: Add test for drm_framebuffer_init()

2024-09-16 Thread Jani Nikula
On Tue, 10 Sep 2024, Carlos Eduardo Gallo Filho 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

[PATCH v4 RESEND 8/9] drm/tests: Add test for drm_framebuffer_init()

2024-09-10 Thread Carlos Eduardo Gallo Filho
Add three KUnit test cases for the drm_framebuffer_init function: 1. Test if expected values are being set after drm_framebuffer_init() call. 2. Try to init a framebuffer without setting its format. 3. Try calling drm_framebuffer_init() with mismatch of the drm_device passed at the first argume