In perl.git, the branch smoke-me/closure.t has been created

<http://perl5.git.perl.org/perl.git/commitdiff/b6fca4ab261ec39cb288c4ae365955e89141fadb?hp=0000000000000000000000000000000000000000>

        at  b6fca4ab261ec39cb288c4ae365955e89141fadb (commit)

- Log -----------------------------------------------------------------
commit b6fca4ab261ec39cb288c4ae365955e89141fadb
Author: Nicholas Clark <[email protected]>
Date:   Tue Mar 15 20:45:40 2011 +0000

    Convert the remainder of t/op/closure.t to test.pl

M       t/op/closure.t

commit 112ae9db6bfa43a37f70bcfdba77bc50995f998b
Author: Nicholas Clark <[email protected]>
Date:   Tue Mar 15 20:06:34 2011 +0000

    Convert the middle test loops of closure.t to test.pl
    
    The nested loops build tap-generating test programs, spawn them, capture 
their
    output, directly print the output, and also run a rudimentary pass of it to
    look for /not ok/, or anything on STDERR. Retain the same structure, and 
retain
    the existing spawning code which (a) works and (b) has comments about being
    careful to avoid problems with redirection and inherited STD*, but switch to
    using test.pl in the test programs, giving each test an identifying
    description, and better diagnostics if anything fails.

M       t/op/closure.t

commit 38357bf74012f5e6555c1e7c680bfb282b8202a8
Author: Nicholas Clark <[email protected]>
Date:   Tue Mar 15 17:23:53 2011 +0000

    Convert the last third of t/op/closure.t to test.pl
    
    closure.t's test function has a prototype of &, so all the blocks passed to 
it
    may well be closures themselves, albeit simple ones over the outer lexicals 
of
    the test script. However all of the tests are explicitly testing other
    closures, systematically building up from these most simple behaviours, so
    this is a side effect of the implementation, and removing it is not going to
    leave particular behaviours untested. It may actually make the test more
    robust, as particular closure bugs accidentally introduced will only cause
    their tests to fail, instead of having the side effect of causing seemingly
    unrelated tests to fail too.

M       t/op/closure.t
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to