Test-More / TB2

Test::Builder version 2, the next generation of building testing modules in Perl
Other
1 stars 0 forks source link

autodie-2.11 failed t/flock.t #203

Closed schwernbot closed 10 years ago

schwernbot commented 10 years ago

From: @celogeek Date: Friday Mar 30, 2012 at 12:10 GMT Orig: https://github.com/Test-More/test-more/issues/266

Test on Ubuntu 64 bits with perl-5.14.2 with threads

autodie module failed on flock.t test.

t/Fatal.t ........................ ok    
t/filehandles.t .................. ok   
t/fileno.t ....................... ok                                                                                                                 
t/flock.t ........................ 1/?
#   Failed test 'Double-flocking should be EWOULDBLOCK'
#   at t/flock.t line 62.
#          got: '29'
#     expected: '11'
#1 test of 4 failed.
t/flock.t ........................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests

I have try on with same version of perl, but Test::More 0.98, and it pass.

schwernbot commented 10 years ago

From: @schwern Date: Friday Mar 30, 2012 at 15:16 GMT Orig: https://github.com/Test-More/test-more/issues/266#issuecomment-4844520

This was due to dup_filehandles() accidentally writing to $!. #268 protects against that.