| 1 | use strictscip-perl cpan List-AllUtils 0.19 strict/; |
| 2 | use warningsscip-perl cpan List-AllUtils 0.19 warnings/; |
| 3 | |
| 4 | use Test::Morescip-perl cpan List-AllUtils 0.19 Test/More/; |
| 5 | |
| 6 | use Capture::Tinyscip-perl cpan List-AllUtils 0.19 Capture/Tiny/ qw( capture ); |
| 7 | use FindBinscip-perl cpan List-AllUtils 0.19 FindBin/ qw( $Bin ); |
| 8 | |
| 9 | chdirscip-perl cpan List-AllUtils 0.19 main/chdir(). "$Bin/../.." |
| 10 | or diescip-perl cpan List-AllUtils 0.19 main/die(). "Cannot chdir to $Bin/../..: $!"; |
| 11 | |
| 12 | my ( $out, $err ) = capturescip-perl cpan List-AllUtils 0.19 main/capture(). { systemscip-perl cpan List-AllUtils 0.19 main/system().(qw( precious lint -a )) }; |
| 13 | isscip-perl cpan List-AllUtils 0.19 main/is().( $?scip-perl cpan List-AllUtils 0.19 main/`$?`. >> 8, 0, 'precious lint -a exited with 0' ); |
| 14 | isscip-perl cpan List-AllUtils 0.19 main/is().( $err, q{}, 'no output to stderr' ); |
| 15 | |
| 16 | done_testingscip-perl cpan List-AllUtils 0.19 main/done_testing().(); |