aboutsummaryrefslogtreecommitdiff
path: root/t/prep.pl
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-14 02:29:12 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-14 02:29:12 +0100
commitf7178c147fb776563c6aa71b87a102e749093f51 (patch)
tree62278e4f98eff3157d82693531a6f395c8f38808 /t/prep.pl
parent06de74c968a4310a68f80e6366a82039dfd76e77 (diff)
downloadsbotools2-f7178c147fb776563c6aa71b87a102e749093f51.tar.xz
Bring tests up to date
Diffstat (limited to 't/prep.pl')
-rwxr-xr-xt/prep.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/prep.pl b/t/prep.pl
index e2fc702..92894fb 100755
--- a/t/prep.pl
+++ b/t/prep.pl
@@ -24,6 +24,7 @@ for my $thing (qw(interactive compat32 no_readme jobs distclean noclean
pr($thing);
}
+print {$write} "use List::Util 'max';\n";
print {$write} "my \%required_by;\n";
print {$write} "our \@confirmed;\n";
print {$write} "my \%locations;\n";
@@ -93,7 +94,8 @@ FIRST: for my $line (@file) {
if ($line =~ /our \@EXPORT_OK/) {
$line = "our \@EXPORT_OK = qw(". join ' ', @not_exported;
}
- $line =~ s/^/#/ if $line =~ /^read_config;$/;
+ $line =~ s/^/#/ if $line =~ /^(read_config;|__END__)$/;
+ $line =~ s/^/1; #/ if $line =~ /^'ok';$/;
}
my $found = 0;