Re: [PATCH 3/3] kunit: add tests for the test attribute API

From: Aveline Noir

Date: Fri Dec 04 2026 - 00:43:09 EST


Hi Tianzhong,

On Fri, 04 Dec 2026 10:57:22 +0800 Miao Tianzhong wrote:

> +static int count_bits(int mask)

hweight32() already does this.

> + { ",", 0 },

kunit.filter=, used to fail with -EINVAL, and now it runs every test. Is
that intended?

> +static void module_desc(const struct module_case *param, char *desc)
> +{
> + snprintf(desc, KUNIT_PARAM_DESC_SIZE, "%s", param->filter);
> +}

Four of these cases are named module=foo, so a failure doesn't show which
one it was. Same for some of the speed ones.

> + kunit_print_attr(&suite, false, 0);

This prints nothing, since no attribute is set on the suite, and the test
has no expectations either. Maybe check the output, or drop it?

Thanks,
Aveline Noir