summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-09-03 18:54:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-03 18:54:51 +0000
commit4d300a87e32917302f666ed22b82aaea01da6df3 (patch)
tree8716fda5c92a7c2bb683b6e1acf574987527373f /t
parentbd05a4614e0221fd12dd8001c037ca98c84c75a0 (diff)
downloadperl-4d300a87e32917302f666ed22b82aaea01da6df3.tar.gz
Remove the tests that assume something about
calling srand() without arguments multiple times. p4raw-id: //depot/perl@11850
Diffstat (limited to 't')
-rw-r--r--t/op/srand.t27
1 files changed, 1 insertions, 26 deletions
diff --git a/t/op/srand.t b/t/op/srand.t
index b9b8ebce06..5aadaa8940 100644
--- a/t/op/srand.t
+++ b/t/op/srand.t
@@ -3,7 +3,7 @@
# Test srand.
use strict;
-use Test::More tests => 5;
+use Test::More tests => 3;
# Generate a load of random numbers.
# int() avoids possible floating point error.
@@ -31,31 +31,6 @@ ok( !eq_array(\@first_run, \@second_run),
'srand(), different arg, different rands' );
-# Check that srand() with no args provides different seeds.
-srand();
-@first_run = mk_rand;
-
-srand();
-@second_run = mk_rand;
-
-ok( !eq_array(\@first_run, \@second_run), 'srand(), no arg, different rands');
-
-
-# Check that srand() isn't effected by $_
-{
- local $_ = 42;
- srand();
- @first_run = mk_rand;
-
- srand();
- @second_run = mk_rand;
-
- ok( !eq_array(\@first_run, \@second_run),
- 'srand(), no arg, not effected by $_');
-}
-
-
-
# This test checks whether Perl called srand for you.
@first_run = `$^X -le "print int rand 100 for 1..100"`;
@second_run = `$^X -le "print int rand 100 for 1..100"`;