From: David Dick Date: Wed, 23 Apr 2008 04:12:42 +0000 (-0700) Subject: [perl #53238] Patch to stop t/op/fork.t relying on rand X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5bf4f5b389a19d17ca9e817f6324c5868e0d30c5;p=p5sagit%2Fp5-mst-13.2.git [perl #53238] Patch to stop t/op/fork.t relying on rand From: David Dick (via RT) Message-ID: p4raw-id: //depot/perl@33749 --- diff --git a/t/op/fork.t b/t/op/fork.t index 7318449..a19b260 100755 --- a/t/op/fork.t +++ b/t/op/fork.t @@ -445,16 +445,14 @@ pipe(RDR,WTR) or die $!; my $pid = fork; die "fork: $!" if !defined $pid; if ($pid == 0) { - my $rand_child = rand; close RDR; - print WTR $rand_child, "\n"; + print WTR "STRING_FROM_CHILD\n"; close WTR; } else { - my $rand_parent = rand; close WTR; - chomp(my $rand_child = ); + chomp(my $string_from_child = ); close RDR; - print $rand_child ne $rand_parent, "\n"; + print $string_from_child eq "STRING_FROM_CHILD", "\n"; } EXPECT 1