summaryrefslogtreecommitdiff
path: root/ext/threads
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-18 22:03:29 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-18 22:03:29 +0000
commit48eb4d6f7d05204aa5e734e924c7236048de530c (patch)
treed96cee2dc0f13aa7df9d05866cc08935b1905089 /ext/threads
parentab335022e3b25ae19e4e8453fb0b38f2ea09412f (diff)
downloadperl-48eb4d6f7d05204aa5e734e924c7236048de530c.tar.gz
The thread warnings aren't quite yet working as planned.
p4raw-id: //depot/perl@16687
Diffstat (limited to 'ext/threads')
-rw-r--r--ext/threads/shared/t/cond.t25
1 files changed, 1 insertions, 24 deletions
diff --git a/ext/threads/shared/t/cond.t b/ext/threads/shared/t/cond.t
index 3d8c97df7f..96016054b6 100644
--- a/ext/threads/shared/t/cond.t
+++ b/ext/threads/shared/t/cond.t
@@ -10,7 +10,7 @@ BEGIN {
}
}
$|++;
-print "1..29\n";
+print "1..25\n";
use strict;
@@ -247,26 +247,3 @@ sub ok {
}
-# test warnings;
-
-{
- my $warncount = 0;
- local $SIG{__WARN__} = sub { $warncount++ };
-
- my $lock : shared;
-
- cond_wait($lock);
- ok(1, $warncount == 1, 'get warning on cond_wait');
- cond_broadcast($lock);
- ok(2, $warncount == 2, 'get warning on cond_wait');
- no warnings 'threads';
- cond_wait($lock);
- ok(3, $warncount == 2, 'get no warning on cond_wait');
- cond_broadcast($lock);
- ok(4, $warncount == 2, 'get no warning on cond_wait');
-
- $Base += 4;
-}
-
-
-