On Mon, Feb 21, 2005 at 08:31:43PM -0600, Andy Lester wrote:
> >This feature is new to me--and I have to say, it seems nearly useless.
> 
> It's the ages-old argument about the value of the plan.  Some people 
> don't like the plan, and some do.

I don't mean the plan is new, only the plan at the end.  The plan at the
beginning has the benefit that if the script dies early, it will be
evident.  The plan at the end doesn't provide that benefit.  I'm
suggesting that, with the addition of "ends with plan", it could.

> In effect, finding
> 
>       ok 1
> 
> as the first line means "ends with plan".

No, because "ok 1" doesn't promise that the plan will come at the end.
Thus, if the test script dies early (with a 0 exit status, somehow), the
harness won't notice anything wrong.  If you used "ends with plan", the
absence of a plan will be an error.

Andrew

Reply via email to