Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src



On Mon, Jul 5, 2010 at 3:32 PM, Nicolas Joly <njoly%netbsd.org@localhost> wrote:
>
> The main idea behind this was to have, except for the exercizing code,
> a one liner test.
>
> func() {}
> ATF_FSAPPLY(func, "func description")
>
> Not using the ATF_FSAPPLY macro, it becomes :
>
> func() {}
>
> ATF_TC_FSAPPLY(func, "description")
> ATF_TP_ADD_TCS(tp)
> {
>  ATF_TP_FSAPPLY(func);
>  return atf_no_error();
> }
>
> Which may be more convenient to add further testcases.

Sure, but you could change the one-liner with the more verbose version
when you want to add a second test case.

-- 
Julio Merino


Home | Main Index | Thread Index | Old Index