Skip to content

Commit d44172c

Browse files
committed
pat_advanced.t: Cancel a watchdog timer
This timer had been skipped until 91d110e. But with it enabled, on slower or heavily loaded systems the test file does not always complete. Take advantage of the new ability to cancel watchdog timers to prevent this situation. Another possibility would to have been to move this test to be the final one in the file. But then effort has to be expended to keep it in that position as new tests are added; and what if such tests also require a watchdog? It's simplest to have the watchdog affect only the single test that needs it. Yet another possibility is to make this test into fresh_perl. But that sort of interferes with what t/re/pat_advanced_thr.t does.
1 parent 4712a4c commit d44172c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/re/pat_advanced.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,6 +2382,7 @@ EOF
23822382
{ # Was looping
23832383
watchdog(10);
23842384
like("\x{00DF}", qr/[\x{1E9E}_]*/i, "\"\\x{00DF}\" =~ /[\\x{1E9E}_]*/i was looping");
2385+
watchdog(0);
23852386
}
23862387

23872388
{ # Bug #90536, caused failed assertion

0 commit comments

Comments
 (0)