Project

General

Profile

Actions

Bug #2460

closed

RubySpecでFiberのSpecがおちる

Added by takkanm (三村 益隆) over 14 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
ruby -v:
Backport:
[ruby-dev:39855]

Description

=begin
ruby 1.9.2dev (2009-12-08 trunk 26049)で、FiberのSpecがこけているのですが、
どうやらRubySpec側が、昔ITSに登録されたバグを誤解してSpecが書かれている気がします。
いかがでしょうか?
core/fiber/resume_spec.rb
22 # http://redmine.ruby-lang.org/issues/show/595
23 it "executes the ensure clause" do
24 fib = Fiber.new{
25 begin
26 Fiber.yield :begin
27 ensure
28 :ensure
29 end
30 }
31 fib.resume.should == :ensure
32 end
コメントに書かれている issue の 595 を見ると、Rubyのプロセスが終了するときに
ensureが呼ばれないというものなのですが、これを再現させようとしているのか、
595の内容を間違って記述している気がします。
=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #595: Fiber ignores ensure clauseClosedioquatix (Samuel Williams)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0