File tree Expand file tree Collapse file tree 5 files changed +22
-15
lines changed
Expand file tree Collapse file tree 5 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 11Revision history for Perl extension threads::shared.
22
3+ 1.18 Tue Feb 26 16:21:55 2008
4+ - Stress test diagnostics
5+ - 'die' properly if no compiler
6+
371.17 Fri Feb 22 21:28:52 2008
48 - Allow installation on non-threaded Perls
59
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
5555
5656 # Verify that a 'C' compiler is available
5757 if (! have_cc()) {
58- die (" No 'C' compiler found to build 'threads::shared'\n " );
58+ die (" OS unsupported: ERROR: No 'C' compiler found to build 'threads::shared'\n " );
5959 }
6060
6161 push (@conditional_params , ' DEFINE' => ' -DHAS_PPPORT_H' ,
Original file line number Diff line number Diff line change 1- threads::shared version 1.17
1+ threads::shared version 1.18
22============================
33
44This module needs Perl 5.8.0 or later compiled with USEITHREADS.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use 5.008;
55use strict;
66use warnings;
77
8- our $VERSION = ' 1.17 ' ;
8+ our $VERSION = ' 1.18 ' ;
99my $XS_VERSION = $VERSION ;
1010$VERSION = eval $VERSION ;
1111
@@ -73,7 +73,7 @@ threads::shared - Perl extension for sharing data structures between threads
7373
7474=head1 VERSION
7575
76- This document describes threads::shared version 1.17
76+ This document describes threads::shared version 1.18
7777
7878=head1 SYNOPSIS
7979
@@ -371,7 +371,7 @@ L<threads::shared> Discussion Forum on CPAN:
371371L<http://www.cpanforum.com/dist/threads-shared>
372372
373373Annotated POD for L<threads::shared> :
374- L<http://annocpan.org/~JDHEDDEN/threads-shared-1.17 /shared.pm>
374+ L<http://annocpan.org/~JDHEDDEN/threads-shared-1.18 /shared.pm>
375375
376376Source repository:
377377L<http://code.google.com/p/threads-shared/>
Original file line number Diff line number Diff line change @@ -88,27 +88,30 @@ use threads::shared;
8888 $okay ++;
8989 } else {
9090 $unknown ++;
91- print (" # Unknown error: $rc \n " );
91+ print (STDERR " # Unknown error: $rc \n " );
9292 }
9393 }
9494
9595 if ($failures || $unknown || (($okay + $timeouts ) != $cnt )) {
96- print (' not ok 1' );
96+ print (" not ok 1\n " );
9797 my $too_few = $cnt - ($okay + $failures + $timeouts + $unknown );
98- print (" - $too_few too few threads reported " ) if $too_few ;
99- print (" - $failures threads failed " ) if $failures ;
100- print (" - $unknown unknown errors " ) if $unknown ;
101- print (" - $timeouts threads timed out " ) if $timeouts ;
102- print (" \ n" );
98+ print (STDERR " # Test failed: \n " ) ;
99+ print (STDERR " # \t $too_few too few threads reported \n " ) if $too_few ;
100+ print (STDERR " # \t $failures threads failed \n " ) if $failures ;
101+ print (STDERR " # \t $unknown unknown errors \n " ) if $unknown ;
102+ print (STDERR " # \t $timeouts threads timed out \ n" ) if $timeouts ;
103103
104104 } elsif ($timeouts ) {
105105 # Frequently fails under MSWin32 due to deadlocking bug in Windows
106106 # hence test is TODO under MSWin32
107107 # http://rt.perl.org/rt3/Public/Bug/Display.html?id=41574
108108 # http://support.microsoft.com/kb/175332
109- print (' not ok 1' );
110- print (' # TODO - not reliable under MSWin32' ) if ($^O eq ' MSWin32' );
111- print (" - $timeouts threads timed out\n " );
109+ if ($^O eq ' MSWin32' ) {
110+ print (" not ok 1 # TODO - not reliable under MSWin32\n " )
111+ } else {
112+ print (" not ok 1\n " );
113+ print (STDERR " # Test failed: $timeouts threads timed out\n " );
114+ }
112115
113116 } else {
114117 print (' ok 1' );
You can’t perform that action at this time.
0 commit comments