This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Convert the middle test loops of closure.t to test.pl
authorNicholas Clark <nick@ccl4.org>
Tue, 15 Mar 2011 20:06:34 +0000 (20:06 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 16 Mar 2011 07:58:18 +0000 (07:58 +0000)
commit3f0b0e8e5bdae4f8c983114e93d402928c8fe871
treebb8df6ae9d8ae8c78844f8aecafc82c009af8ceb
parentff31df890edeb85b59e2eac4986b629b5a56376d
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.
t/op/closure.t