Skip to content

Commit 2343ea3

Browse files
author
jdhedden
committed
threads-shared v1.18
1 parent 5286c07 commit 2343ea3

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision 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+
37
1.17 Fri Feb 22 21:28:52 2008
48
- Allow installation on non-threaded Perls
59

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
threads::shared version 1.17
1+
threads::shared version 1.18
22
============================
33

44
This module needs Perl 5.8.0 or later compiled with USEITHREADS.

shared.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use 5.008;
55
use strict;
66
use warnings;
77

8-
our $VERSION = '1.17';
8+
our $VERSION = '1.18';
99
my $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:
371371
L<http://www.cpanforum.com/dist/threads-shared>
372372
373373
Annotated 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
376376
Source repository:
377377
L<http://code.google.com/p/threads-shared/>

t/stress.t

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)