Re: [PATCH] Fix linked-list KUnit test when run multiple times
From: Brendan Higgins
Date: Fri Jan 24 2020 - 19:02:44 EST
On Fri, Jan 24, 2020 at 3:13 PM David Gow <davidgow@xxxxxxxxxx> wrote:
>
> On Fri, Jan 24, 2020 at 2:01 PM Brendan Higgins
> <brendanhiggins@xxxxxxxxxx> wrote:
> > Oh good, I am glad we are getting rid of those static variables. (I
> > thought we already dropped those - whoops.) I think this drops this
> > last of them, can you confirm David?
>
> Yeah, this is the last of them.
>
> I vaguely recall a suggestion that it may be worth testing that the
> LIST_HEAD() macro works with static, but as mentioned in the
> description, the for_each_entry_* tests probably aren't the best place
> to do that anyway...
Ah, I think I missed that. Makes sense.