| 1 | use Test::Simple tests => 3; |
| 2 | |
| 3 | my $ret = `perl -wc pgbadger 2>&1`; |
| 4 | ok( $? == 0, "PERL syntax check"); |
| 5 | |
| 6 | $ret = `podchecker doc/*.pod 2>&1`; |
| 7 | ok( $? == 0, "pod syntax check"); |
| 8 | |
| 9 | $ret = `perl -E 'use Storable qw(dclone); say "version=",\$Storable::VERSION; say "limit=",\$Storable::recursion_limit; my \@tt; for (1..1_000_000) { my \$t = [[[]]]; push \@tt, \$t } dclone \@tt' 2>&1 | grep "Max. recursion depth with nested structures exceeded"`; |
| 10 | chomp($ret); |
| 11 | ok( $ret eq '', "Storable version in this Perl install is buggy, need Perl 5.32 or greater"); |
| 12 |