diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_objectspace.rb | 1 | ||||
| -rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 | ||||
| -rw-r--r-- | test/ruby/test_thread.rb | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb index 571c725986..24731a7a50 100644 --- a/test/ruby/test_objectspace.rb +++ b/test/ruby/test_objectspace.rb @@ -61,6 +61,7 @@ End ObjectSpace.define_finalizer(a) { p :ok } b = a.dup ObjectSpace.define_finalizer(a) { p :ok } + !b END assert_raise(ArgumentError) { ObjectSpace.define_finalizer([], Object.new) } end diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 65e692ecc0..5befa465a3 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -182,7 +182,7 @@ class TestRubyOptions < Test::Unit::TestCase end def test_syntax_check - assert_in_out_err(%w(-c -e a=1+1), "", ["Syntax OK"], []) + assert_in_out_err(%w(-c -e a=1+1 -e !a), "", ["Syntax OK"], []) end def test_invalid_option diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 3c10cce3c3..0322448c71 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -231,7 +231,7 @@ class TestThread < Test::Unit::TestCase t1 = Thread.new { sleep } Thread.pass t2 = Thread.new { loop { } } - t3 = Thread.new { }.join + Thread.new { }.join p [Thread.current, t1, t2].map{|t| t.object_id }.sort p Thread.list.map{|t| t.object_id }.sort INPUT |
