Mail Archives: djgpp-workers/2001/05/08/07:30:51
On Tue, 8 May 2001, Hans-Bernhard Broeker wrote:
> On Tue, 8 May 2001, Eli Zaretskii wrote:
>
> [...]
> > didn't cope well with this (setting a pointer to NULL is looking for
> > SIGSEGV's ;-), and IIRC the test harness didn't test all of the
> > possible cases (I forget the details). The case of n == 0 is very
> > important for snprintf, so it must be rock-solid.
>
> As a reminder, let me point out that we do have tools to check whether a
> test case exercised all of the special cases in a given function: that's
> exactly what gcov is for.
Yes, `gcov' is an important test tool, but it only helps if the untested
situations have special code branches dedicated to them.
- Raw text -