Skip to content

Commit d3de099

Browse files
committed
Remove explicit watchdog cancellations at end of program
The previous commit made these unnecessary. This commit removes them. I also removed a couple that occurred just before done_testing() and plan() that occur at the end of the program.
1 parent 8192cfd commit d3de099

File tree

12 files changed

+0
-23
lines changed

12 files changed

+0
-23
lines changed

t/io/closepid.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ SKIP:
4242
kill $killsig, $pid;
4343
open STDIN, "<&", $savein;
4444
}
45-
46-
watchdog(0);

t/io/openpid.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,3 @@ next_test();
101101
print "# waiting for process $pid4 to exit\n";
102102
$reap_pid = waitpid $pid4, 0;
103103
is( $reap_pid, $pid4, 'fourth process reaped' );
104-
105-
watchdog(0);

t/op/sigdispatch.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,3 @@ like $@, qr/No such hook: __DIE__\\0whoops at/;
167167
is($int_called, 1);
168168
is($@, "died");
169169
}
170-
171-
watchdog(0);

t/op/signame_canonical.t

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,3 @@ foreach my $dupe (@duplicate_signals) {
7272
is( $SIG{$dupe}, undef, "The signal $dupe is cleared after local goes out of scope." );
7373
is( $SIG{$canonical_name}, undef, "The signal $canonical_name is cleared after local goes out of scope." );
7474
}
75-
76-
watchdog(0);
77-

t/op/study.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,3 @@ TODO: {
158158
push @got, $_ foreach $a =~ /[^x]d(?{$a .= ''})[^x]d/g;
159159
is("@got", 'ydyd ydyd', '#92696 $a .= \'\' inside (?{}), $a studied');
160160
}
161-
162-
watchdog(0);

t/op/time.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,5 +248,3 @@ SKIP: {
248248
is scalar gmtime("NaN"), undef, '[perl #123495] gmtime(NaN)';
249249
is scalar localtime("NaN"), undef, 'localtime(NaN)';
250250
}
251-
252-
watchdog(0);

t/op/time_loop.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ watchdog(2);
1414
local $SIG{__WARN__} = sub {};
1515
is gmtime(2**69), undef;
1616
is localtime(2**69), undef;
17-
18-
watchdog(0);

t/op/waitpid.t

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ watchdog(10);
3535

3636
pass("didn't block on waitpid(0, ...)");
3737
}
38-
watchdog(0);
3938

4039
done_testing();

t/perf/speed.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@ SKIP: {
4242
pass("COW 1Mb strings");
4343
}
4444

45-
watchdog(0);
46-
4745
1;

t/perf/taint.t

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,4 @@ my $taint = substr($ENV{PATH}, 0, 0); # and empty tainted string
6161
pass("RT #130584 pos on tainted utf8 string");
6262
}
6363

64-
watchdog(0);
65-
6664
1;

0 commit comments

Comments
 (0)