Bug #1344
closedsleep(0) sleeps forever on Mac OSX 10.4
Description
=begin
Instead of not sleeping at all, sleep(0) sleeps forever on Mac OSX 10.4. Multiruby output below:
$ uname -a
Darwin xxxx 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
$ multiruby -rtimeout -e 'Timeout::timeout(2) { sleep(0) }'
VERSION = jruby-1.1.6
CMD = ~/.multiruby/install/jruby-1.1.6/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = jruby-1.2.0RC2
CMD = ~/.multiruby/install/jruby-1.2.0RC2/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = 1.8.7-p72
CMD = ~/.multiruby/install/1.8.7-p72/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = v1_8_6_110
CMD = ~/.multiruby/install/v1_8_6_110/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = v1_9_1_0
CMD = ~/.multiruby/install/v1_9_1_0/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
-e:1:in sleep': execution expired (Timeout::Error) from -e:1:in
block in '
from -e:1:in `'
RESULT = 256
TOTAL RESULT = 1 failures out of 5
Passed: jruby-1.2.0RC2, jruby-1.1.6, v1_8_6_110, 1.8.7-p72
Failed: v1_9_1_0
=end