Skip to content

Commit

Permalink
Quarantine Thread#value spec using Thread#kill.
Browse files Browse the repository at this point in the history
It's unclear what caused this to start failing, more debugging needed.

The vm()->thread_state()->raise_reason() == cThreadKill except when
vm_thread_state primitive is called from the Thread#__run__ ensure clause.
  • Loading branch information
brixen committed Feb 29, 2016
1 parent 1eb57bd commit b903c1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/ruby/core/thread/value_spec.rb
Expand Up @@ -11,8 +11,10 @@
lambda { t.value }.should raise_error(RuntimeError, "Hello")
end

quarantine! do
it "is nil for a killed thread" do
t = Thread.new { Thread.current.exit }
t.value.should == nil
end
end
end

0 comments on commit b903c1f

Please sign in to comment.