[LTP] [PATCH 3/3] memcontrol04: Copy from kselftest

Richard Palethorpe rpalethorpe@suse.de
Thu Feb 10 08:34:25 CET 2022


Hello Li,

Li Wang <liwang@redhat.com> writes:

> This test has a high repetition with memcontrol03, I'm just
> wondering if any possibility to merge together by defining a 
> struct tcase?
>
> static struct tcase {
>        char *ctrl_file;
> } tcases[] = {
>        {"memory.min"},
>        {"memory.low"}
> };

There are a number of places where the logic is different. We would end
up a with a test full of branches. There is some boilerplate which is
the same for now, but that could also diverge between tests.

-- 
Thank you,
Richard.


More information about the ltp mailing list