When I was developing tests for the functionality refactored out of
ops2pm.pl a couple of months ago, I needed a package to hold
subroutines used in >= 1 of my test scripts to capture data printed
to STDOUT or STDERR for later analysis. I stuck a small package,
based on CPAN distribution IO::Capture, in a testlib/ directory
underneath the directory holding the tests.
By the time I got to work on ops2c.pl, I realized that those
subroutines would be better placed under lib/Parrot so that they're
more clearly available for all Perl 5 components of Parrot. I
created Parrot::IO::Capture::Mini and used it in t/tools/ops2cutils/*.t.
Task: Switch the tests in t/tools/ops2pmutils/ over to using
Parrot::IO::Capture::Mini; eliminate testlib/Capture.pm.