aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-18 11:27:42 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-18 11:27:42 +0000
commitfe360c463c920dbb16284f3cede4c34f32162f77 (patch)
tree2f7d53a57fe8e03d51108a43ed2eda033e7ac997 /test/ruby/test_thread.rb
parent00b8bd5c877606ff0cbdc4a0afdf75cd9a3b61cb (diff)
downloadruby-fe360c463c920dbb16284f3cede4c34f32162f77.tar.gz
* variable.c, vm_method.c: remove dead code.
* test/ruby/test_fiber.rb, test/ruby/test_thread.rb: change accordingly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 6f33a120f7..dd13842bfe 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -493,10 +493,7 @@ class TestThread < Test::Unit::TestCase
skip 'with win32ole, cannot run this testcase because win32ole redefines Thread#intialize' if defined?(WIN32OLE)
bug5083 = '[ruby-dev:44208]'
assert_equal([], Thread.new(&Module.method(:nesting)).value)
- error = assert_raise(RuntimeError) do
- Thread.new(:to_s, &Module.method(:undef_method)).join
- end
- assert_equal("Can't call on top of Fiber or Thread", error.message, bug5083)
+ assert_instance_of(Thread, Thread.new(:to_s, &Class.new.method(:undef_method)).join)
end
def make_handle_interrupt_test_thread1 flag