On Mon, Jul 5, 2010 at 3:32 PM, Nicolas Joly <nj...@netbsd.org> 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

Reply via email to