COMMIT Add a spec for detect/find with failover proc on explicitly empty array. http://github.com/rubyspec/rubyspec/commit/1e4d92688d929ee34ece2cb5886df4a1d712797f =================================================================== +++ 20100904T001146Z @@ 10528 @@ - returns the value of the ifnone proc if the block is false - doesn't call the ifnone proc if an element is found - calls the ifnone proc only once when the block is false +- calls the ifnone proc when there are no elements - returns an enumerator when no block given - passes the ifnone proc to the enumerator @@ 10608 @@ - returns the value of the ifnone proc if the block is false - doesn't call the ifnone proc if an element is found - calls the ifnone proc only once when the block is false +- calls the ifnone proc when there are no elements - returns an enumerator when no block given - passes the ifnone proc to the enumerator @@ 23920 @@ ConditionVariable#broadcast - should return self if nothing to broadcast to - should return self if something is waiting for a broadcast +- releases all threads waiting in line for this resource (ERROR - ) /home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/signal_spec.rb ConditionVariable#signal @@ 33090 @@ /home/chkbuild/tmp/build/ruby-1.8.7//mspec/bin/mspec-run:8 ) +ConditionVariable#broadcast releases all threads waiting in line for this resource ERROR +ThreadError: Thread#join: deadlock 0x7ffc20533378 - mutual join(0x3abadf8) +/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' +/home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/broadcast_spec.rb:55 /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/context.rb:179:in `protect' +/home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/broadcast_spec.rb:2:in `all?' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/context.rb:179:in `each' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/context.rb:179:in `all?' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 33108 @@ /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8.7//rubyspec/library/conditionvariable/broadcast_spec.rb:4 /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8.7//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 33601 @@ Finished in seconds +3284 files, 13387 examples, expectations, 23 failures, 15 errors exit 1 failed(rubyspec) == end #