[oops sending to the list this time] 2009/3/13 Ovid <publiustemp-perl...@yahoo.com>: > > ________________________________ > From: Josh Heumann <perl...@joshheumann.com> > >> In that case, the way to generate well-formed TAP seems to be to put the >> END block above the use statement, which either means an end statement >> at the top in the section of the code with the use statements, or to put >> the use statement lower than the END block. > > That's awful, but I think this is a Perl limitation. I should probably > include this in the documentation.
If I have this straight, the problem is that T::NW's END executes after the test script's END. This happens because T:NW's END is compiled before the test script's END. You could get around this by having Test:::Most require T::NW in a CHECK or INIT. This will cause T::NW's END to be compiled after everything else and so will run before all other END blocks. For fun, I also direct your to http://search.cpan.org/~fdaly/Manip-END-0.08/ which I wrote just to prove that it could be done. It allows you to rejigger the END callbacks. It won't actually solve this problem but could be further improved to handle it, although that would probably be a bad way to solve this :) F > > Cheers, > Ovid > -- > Buy the book - http://www.oreilly.com/catalog/perlhks/ > Tech blog - http://use.perl.org/~Ovid/journal/ > Twitter - http://twitter.com/OvidPerl > Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 >