From e58dc6a96818c17dd32b3929fc0d9ad2b3a2bbd9 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 2 Jun 2008 12:57:18 +0000 Subject: * test/ruby/test_file.rb: add tests for uninitialized object. * test/ruby/test_class.rb: ditto. * test/ruby/test_thread.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_thread.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ruby/test_thread.rb') diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 9abe39b104..e3a6724425 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -499,4 +499,10 @@ class TestThreadGroup < Test::Unit::TestCase }.join t.join end + + def test_uninitialized + c = Class.new(Thread) + c.class_eval { def initialize; end } + assert_raise(ThreadError) { c.new.start } + end end -- cgit v1.2.3