cpan-authors / IPC-Run

https://metacpan.org/pod/IPC::Run
Other
21 stars 38 forks source link

t/parent_and_child_fds_match.t may fail #149

Open eserte opened 3 years ago

eserte commented 3 years ago

Sometimes t/parent_and_child_fds_match.t fails like this:

#   Failed test 'child process exited with success status'
#   at t/parent_and_child_fds_match.t line 63.
# Looks like you failed 1 test of 3.
t/parent_and_child_fds_match.t ....... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

Does not seem to depend on an operating system (seen on freebsd, macosx and linux) or perl version (happened on my smokers for perls between 5.18.4 and 5.34.0). Rerunning the test suite usually gives a pass.

nmisch commented 2 years ago

Can you set IPCRUNDEBUG=gory in the environment and share the output from a failing run? I've been unable to reproduce this. I tried the test in a loop on a fast machine, a slow machine, and running under rr record --chaos --always-switch --force-things. Output from a failure in the latest version (20220807.0) would be best, but any version (guessing you had used 20200505.0) would be helpful.