[tap-l] Pragmas

Ovid publiustemp-tapx at yahoo.com
Thu Apr 17 09:24:48 UTC 2008


--- Andy Armstrong <andy at hexten.net> wrote:

> Are we OK with this interface? Currently the only supported pragma is
 
> 'strict' but I've just committed a change to T::H that adds an  
> ignore_exit option at various places (at the request of the Parrot  
> folks) and it seems that it'd be useful to support
> 
>      pragma +ignore_exit
> 
> so that a script that knew it couldn't control its exit status could 
> tell the parser to ignore it.
>
> Do we like that?

I do like the syntax, but can you give a use case here?  I could
imagine the harness wanting to ignore exit codes if it cannot reliably
determine them (reading TAP from an archive), but I'm unclear about the
producer directing this.  However, even the slightest use case is
tempting.

That being said, I'm not entirely sure I like that test success/failure
is dependent on exit codes as that's "out of band" information.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/


More information about the tap-l mailing list