Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ddick (5726)

  (email not shown publicly)

I'm based out of Melbourne, Australia. I attend the excellent meetings whenever i get the chance, which is not often enough.

Journal of ddick (5726)

Wednesday February 20, 2008
07:22 PM

perl core 5.8 fork test fails due to rand???

[ #35710 ]

I have to admit i found this quite frustrating.

I've written a set of programs that do nightly builds that feed into nightly tests, blah, blah.

One of the requirements is that we bundle our own version of perl with the software, so, every night, perl gets ./Configure && make && make test && make install.

After time, perl's make test failed in 't/op/fork.t'. The next night it worked thou.

After receiving a query about the unexpected build failure from the local sys. admin. team, i did a bad thing and decided that if fork was failing and then started working again, this could indicate a hardware issue.


Sorry!!! it could also indicate that 't/op/fork.t' is actually testing the rand() functionality.

't/op/fork.t' doesn't do anything at all with srand before forking a calling rand in each new process.

The test depends on the rand() in each process producing different results

Not surprisingly, 't/op/fork.t' fails fairly regularly.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.