Skip to content

Commit afe3e67

Browse files
committed
allow some basic infrastructure to load with -Dusedefaultstrict
The changes to t/test.pl appear to be real bugs. This allows `make test_harness` to run, but many tests will still fail under -Dusedefaultstrict This addresses #21732 but does not fix it. I'm unsure how supported that build option is.
1 parent 06c1b78 commit afe3e67

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

TestInit.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
package TestInit;
3939

40-
$VERSION = 1.04;
40+
our $VERSION = 1.05;
4141

4242
# Let tests know they're running in the perl core. Useful for modules
4343
# which live dual lives on CPAN.

regen/embed_lib.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl -w
22
BEGIN {
3-
for $n (qw(lib regen)) {
3+
for my $n (qw(lib regen)) {
44
if (-e "../$n") {
55
push @INC, "../$n";
66
} elsif (-e "./$n") {

t/test.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ sub _num_to_alpha {
10141014
my %tmpfiles;
10151015
sub unlink_tempfiles {
10161016
unlink_all keys %tmpfiles;
1017-
%tempfiles = ();
1017+
%tmpfiles = ();
10181018
}
10191019

10201020
END { unlink_tempfiles(); }
@@ -1796,11 +1796,11 @@ ($;$)
17961796
if ($timeout == 0) {
17971797
if ($watchdog_thread) {
17981798
$watchdog_thread->kill('KILL');
1799-
undef $watch_dog_thread;
1799+
undef $watchdog_thread;
18001800
}
18011801
elsif ($watchdog) {
18021802
kill('KILL', $watchdog);
1803-
undef $watch_dog;
1803+
undef $watchdog;
18041804
}
18051805
else {
18061806
alarm(0);

0 commit comments

Comments
 (0)