This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move the require './test.pl' to the end of t/comp/hints.t
authorNicholas Clark <nick@ccl4.org>
Fri, 9 Oct 2009 16:57:12 +0000 (18:57 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 9 Oct 2009 18:26:18 +0000 (20:26 +0200)
commitbc8f2ddd12bfb4ed7885096cdab471dc8d1188aa
tree1f2d347f14509bfbbed5a5e7197015a162bf58bf
parent8b3931378ff96ff45729c95c3ef32a837469a850
Move the require './test.pl' to the end of t/comp/hints.t

Ideally tests in t/comp wouldn't use require, as require isn't tested yet, but
this test really needs runperl(), and really wants to live in t/comp/hints.t,
so place it at the end, so that any catestrophic failure only fails the last
test. We don't use any other functionality of t/test.pl

This test uses hard-coded test numbers, but I'm not convinced that it would be
correct to re-write it to use an automatically incrementing counter, as that
wouldn't fail in an obvious fashion if some compile-time blocks ran out of
order. What we have *will* fail in an informative fashion if compile time
blocks do not run correctly.
t/comp/hints.t