Skip to content

Commit

Permalink
[RubySpec] Fix bad spec using racy behavior and killing a thread for …
Browse files Browse the repository at this point in the history
…no reason.
  • Loading branch information
eregon committed Mar 6, 2015
1 parent c25d417 commit a6fc17e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/ruby/shared/mutex/lock.rb
Expand Up @@ -36,15 +36,9 @@
th = Thread.new do
m.lock
m.lock
v = 1
end

Thread.pass while th.status and th.status != "sleep"

ScratchPad.recorded.should be_nil

lambda do
th.kill
th.join
end.should raise_error(ThreadError)
end
Expand Down

0 comments on commit a6fc17e

Please sign in to comment.