Issue #5335 has been updated by Motohiro KOSAKI.


Done.
r33454 and r33456.
----------------------------------------
Backport #5335: [RFC/PATCH] test_old_thread_select: timing tweaks
http://redmine.ruby-lang.org/issues/5335

Author: Eric Wong
Status: Closed
Priority: Normal
Assignee: Motohiro KOSAKI
Category: 
Target version: 


I was getting timing errors and short select() timeouts on CentOS 5.6
2.6.18-238.9.1.el5xen most likely due to CONFIG_HZ=250 and the lack of dynticks,
but maybe being a Xen VM has this effect, too.

select() itself appears to just be inaccurate on this system:

	strace -e select -T ./ruby -e 'select([STDIN],nil,nil,0.001)'
	select(1, [0], NULL, NULL, {0, 1000})   = 0 (Timeout) <0.000046>

I'm not happy with timing tests, but I can't think of another way to test
functionality like this.


-- 
http://redmine.ruby-lang.org