Message-ID: <
20020519005043.F7275@fdgroup.com>
p4raw-id: //depot/perl@16689
}
}
$|++;
-print "1..25\n";
+print "1..29\n";
use strict;
}
+# test warnings;
+
+{
+ my $warncount = 0;
+ local $SIG{__WARN__} = sub { $warncount++ };
+
+ my $lock : shared;
+
+ cond_signal($lock);
+ ok(1, $warncount == 1, 'get warning on cond_signal');
+ cond_broadcast($lock);
+ ok(2, $warncount == 2, 'get warning on cond_broadcast');
+ no warnings 'threads';
+ cond_signal($lock);
+ ok(3, $warncount == 2, 'get no warning on cond_signal');
+ cond_broadcast($lock);
+ ok(4, $warncount == 2, 'get no warning on cond_broadcast');
+
+ $Base += 4;
+}
+
+
+