summaryrefslogtreecommitdiff
path: root/dist/threads
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2015-03-07 21:33:02 -0500
committerSteve Hay <steve.m.hay@googlemail.com>2015-03-17 22:35:32 +0000
commit375a183df37f02dd03017a269198e3e7db608e7c (patch)
treec44bece45a25a079b28db5e1893d9da57e65110f /dist/threads
parentfea595886a8471a2018931e024df15febd8472d9 (diff)
downloadperl-375a183df37f02dd03017a269198e3e7db608e7c.tar.gz
Upgrade to threads 2.01
Diffstat (limited to 'dist/threads')
-rw-r--r--dist/threads/lib/threads.pm4
-rw-r--r--dist/threads/t/exit.t10
-rw-r--r--dist/threads/t/thread.t2
3 files changed, 8 insertions, 8 deletions
diff --git a/dist/threads/lib/threads.pm b/dist/threads/lib/threads.pm
index 0e863ded21..7d7ea3db6d 100644
--- a/dist/threads/lib/threads.pm
+++ b/dist/threads/lib/threads.pm
@@ -5,7 +5,7 @@ use 5.008;
use strict;
use warnings;
-our $VERSION = '1.99';
+our $VERSION = '2.01';
my $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
@@ -134,7 +134,7 @@ threads - Perl interpreter-based threads
=head1 VERSION
-This document describes threads version 1.99
+This document describes threads version 2.01
=head1 WARNING
diff --git a/dist/threads/t/exit.t b/dist/threads/t/exit.t
index 3d7d16486b..96973b74bc 100644
--- a/dist/threads/t/exit.t
+++ b/dist/threads/t/exit.t
@@ -48,7 +48,7 @@ my $rc = $thr->join();
ok(! defined($rc), 'Exited: threads->exit()');
-run_perl(prog => 'use threads 1.99;' .
+run_perl(prog => 'use threads 2.01;' .
'threads->exit(86);' .
'exit(99);',
nolib => ($ENV{PERL_CORE}) ? 0 : 1,
@@ -98,7 +98,7 @@ $rc = $thr->join();
ok(! defined($rc), 'Exited: $thr->set_thread_exit_only');
-run_perl(prog => 'use threads 1.99 qw(exit thread_only);' .
+run_perl(prog => 'use threads 2.01 qw(exit thread_only);' .
'threads->create(sub { exit(99); })->join();' .
'exit(86);',
nolib => ($ENV{PERL_CORE}) ? 0 : 1,
@@ -108,7 +108,7 @@ run_perl(prog => 'use threads 1.99 qw(exit thread_only);' .
is($?>>8, 86, "'use threads 'exit' => 'thread_only'");
}
-my $out = run_perl(prog => 'use threads 1.99;' .
+my $out = run_perl(prog => 'use threads 2.01;' .
'threads->create(sub {' .
' exit(99);' .
'});' .
@@ -124,7 +124,7 @@ my $out = run_perl(prog => 'use threads 1.99;' .
like($out, qr/1 finished and unjoined/, "exit(status) in thread");
-$out = run_perl(prog => 'use threads 1.99 qw(exit thread_only);' .
+$out = run_perl(prog => 'use threads 2.01 qw(exit thread_only);' .
'threads->create(sub {' .
' threads->set_thread_exit_only(0);' .
' exit(99);' .
@@ -141,7 +141,7 @@ $out = run_perl(prog => 'use threads 1.99 qw(exit thread_only);' .
like($out, qr/1 finished and unjoined/, "set_thread_exit_only(0)");
-run_perl(prog => 'use threads 1.99;' .
+run_perl(prog => 'use threads 2.01;' .
'threads->create(sub {' .
' $SIG{__WARN__} = sub { exit(99); };' .
' die();' .
diff --git a/dist/threads/t/thread.t b/dist/threads/t/thread.t
index 8582eba00f..a0e6296908 100644
--- a/dist/threads/t/thread.t
+++ b/dist/threads/t/thread.t
@@ -161,7 +161,7 @@ package main;
# bugid #24165
-run_perl(prog => 'use threads 1.99;' .
+run_perl(prog => 'use threads 2.01;' .
'sub a{threads->create(shift)} $t = a sub{};' .
'$t->tid; $t->join; $t->tid',
nolib => ($ENV{PERL_CORE}) ? 0 : 1,