You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Greg Stein <gs...@lyra.org> on 2002/10/13 13:01:45 UTC
Re: cvs commit: apr/test Makefile.in test_apr.h testall.c testmmap.c
On Sun, Oct 13, 2002 at 05:28:15AM -0000, rbb@apache.org wrote:
>...
> +++ testall.c 13 Oct 2002 05:28:15 -0000 1.5
> @@ -57,7 +57,7 @@
>
> #include "test_apr.h"
>
> -#define NUM_TESTS 4
> +#define NUM_TESTS 5
>
> apr_pool_t *p;
>
> @@ -67,7 +67,8 @@
> teststr,
> testtime,
> testvsn,
> - testipsub
> + testipsub,
> + testmmap
> };
You keep bumping NUM_TESTS and adding entries to the array. You can avoid
the dual-maintenance and potential for falling out of sync by adding a NULL
element ("sentinel") to the array to signify the end.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
Re: cvs commit: apr/test Makefile.in test_apr.h testall.c testmmap.c
Posted by Aaron Bannert <aa...@clove.org>.
On Sun, Oct 13, 2002 at 04:01:45AM -0700, Greg Stein wrote:
> You keep bumping NUM_TESTS and adding entries to the array. You can avoid
> the dual-maintenance and potential for falling out of sync by adding a NULL
> element ("sentinel") to the array to signify the end.
a.k.a. "poison pill".
-aaron
Re: cvs commit: apr/test Makefile.in test_apr.h testall.c testmmap.c
Posted by rb...@apache.org.
On Sun, 13 Oct 2002, Greg Stein wrote:
> On Sun, Oct 13, 2002 at 05:28:15AM -0000, rbb@apache.org wrote:
> >...
> > +++ testall.c 13 Oct 2002 05:28:15 -0000 1.5
> > @@ -57,7 +57,7 @@
> >
> > #include "test_apr.h"
> >
> > -#define NUM_TESTS 4
> > +#define NUM_TESTS 5
> >
> > apr_pool_t *p;
> >
> > @@ -67,7 +67,8 @@
> > teststr,
> > testtime,
> > testvsn,
> > - testipsub
> > + testipsub,
> > + testmmap
> > };
>
> You keep bumping NUM_TESTS and adding entries to the array. You can avoid
> the dual-maintenance and potential for falling out of sync by adding a NULL
> element ("sentinel") to the array to signify the end.
DAmn, do I feel dumb now. I make that change tonight. Thanks.
Ryan
_______________________________________________________________________________
Ryan Bloom rbb@apache.org
550 Jean St
Oakland CA 94610
-------------------------------------------------------------------------------