[PATCH 0/6] Add a unit-testing framework to Busybox

Rich Felker dalias at libc.org
Thu Jun 26 12:12:35 UTC 2014


On Thu, Jun 26, 2014 at 12:35:53PM +0200, Denys Vlasenko wrote:
> On Thu, Jun 26, 2014 at 12:00 PM, Bartosz Gołaszewski
> <bartekgola at gmail.com> wrote:
> > 2014-06-22 16:31 GMT+02:00 Denys Vlasenko <vda.linux at googlemail.com>:
> >> Applied all patches with some editing.
> >> Thanks a lot!
> >
> > Hi Denys,
> >
> > I see, that you removed the INIT_FIRST macro from my implementation.
> > Are you sure llist_t *tests will always be initialized before calling
> > the test registering functions?
> 
> Global data is initialized to zero at program load time.

And even if you need a non-zero initial value, static initialization
is usually suitable; there's no need for code for this kind of thing.

Rich


More information about the busybox mailing list