develooper Front page | perl.perl5.porters | Postings from April 2008

Re: [perl #53238] Patch to stop t/op/fork.t relying on rand

Thread Previous
From:
Rafael Garcia-Suarez
Date:
April 26, 2008 13:59
Subject:
Re: [perl #53238] Patch to stop t/op/fork.t relying on rand
Message ID:
b77c1dce0804261359s29df7987j399af0331edef44b@mail.gmail.com
2008/4/23 via RT David Dick <perlbug-followup@perl.org>:
>  t/op/fork.t depends on rand behaving in a non-random fashion.  After
>  forking it generates a random number without seeding with srand and
>  depends on the resu
>  lts of the two rands being different.  Sometimes they are the same,
>  causing incorrect failures.  This patch fixes this issue by sending a
>  known string from
>  the child and testing the value in the parent.

Thanks, applied.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About