On Wed, 12 Jan 2022 at 10:24, Dr. David Alan Gilbert (git) <[email protected]> wrote: > > From: "Dr. David Alan Gilbert" <[email protected]> > > We fairly regularly forget VMSTATE_END_OF_LIST markers off descriptions; > given that the current check is only for ->name being NULL, sometimes > we get unlucky and the code apparently works and no one spots the error. > > Explicitly add a flag, VMS_END that should be set, and assert it is > set during the traversal.
Does 'make check' definitely do the traversal for all vmstate structs, or do we need to add a "sanity check them all on startup" bit of test code ? thanks -- PMM
