COMMIT StringIO#read, #sysread specs when passed nil at EOF. http://github.com/rubyspec/rubyspec/commit/e4a5124b63a93fb6181c5a87fa678a059d6c8d7a --- 20090427T090358 +++ 20090428T091810 @@ -1,25094 +1,25100 @@ StringIO#read when passed no arguments - reads the whole content starting from the current position - correctly updates the current position +- returns an empty string if at EOF + +StringIO#read when passed nil +- returns the remaining content from the current position +- updates the current position +- returns an empty string if at EOF StringIO#read when self is not readable - raises an IOError @@ -25263,6 +25269,10 @@ StringIO#sysread when self is not readable - raises an IOError +StringIO#sysread when passed nil +- returns the remaining content from the current position +- updates the current position + StringIO#sysread when passed [length] - raises an EOFError when self's position is at the end @@ -26242,7 +26252,7 @@ ) ConditionVariable#broadcast releases all threads waiting in line for this resource ERROR -ThreadError: Thread#join: deadlock 0x7fe4d5c82370 - mutual join(0x7fe4d3dbce68) +ThreadError: Thread#join: deadlock 0x7fd33ba9d358 - mutual join(0x7fd33a30c310) /home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/broadcast_spec.rb:55:in `join' /home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/broadcast_spec.rb:55 /home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/broadcast_spec.rb:55:in `each' @@ -26252,7 +26262,7 @@ Finished in seconds -2543 files, 10440 examples, 35226 expectations, 1 failure, 5 errors +2543 files, 10446 examples, 35236 expectations, 1 failure, 5 errors exit 1 failed(rubyspec) == end #