Skip to content

Commit 053749c

Browse files
haargoalders
authored andcommitted
skip threads on older perl versions, as they often segfault
Threads are super unreliable on perls older than 5.10.1. They will cause segfaults even for extremely trivial cases. Better to just skip the threads tests on those perls. Later 5.8 releases may be a bit more reliable, but 5.10.0 is particularly bad. For simplicity, just cut it off at 5.10.1.
1 parent 9b730d6 commit 053749c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/threads.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use Test::More;
88
# Verify thread safety.
99
BEGIN {
1010
plan(skip_all => "Not configured for threads") unless $Config{useithreads};
11+
plan(skip_all => "Threads are not reliable on older perls")
12+
unless "$]" >= 5.010001;
1113
plan(tests => 1);
1214
}
1315
use threads;

0 commit comments

Comments
 (0)