diff options
-rw-r--r-- | test/ripper/test_parser_events.rb | 4 | ||||
-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 | ||||
-rw-r--r-- | test/test_mathn.rb | 4 |
5 files changed, 7 insertions, 6 deletions
@@ -1097,8 +1097,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal("[fcall(proc,[],&block([],[void()]))]", parse("proc{|;y|}")) if defined?(Process::RLIMIT_AS) assert_in_out_err(["-I#{File.dirname(__FILE__)}", "-rdummyparser"], - 'Process.setrlimit(Process::RLIMIT_AS,102400); puts DummyParser.new("proc{|;y|}").parse', - ["[fcall(proc,[],&block([],[void()]))]"], [], '[ruby-dev:39423]') end end @@ -61,6 +61,7 @@ End ObjectSpace.define_finalizer(a) { p :ok } b = a.dup ObjectSpace.define_finalizer(a) { p :ok } END assert_raise(ArgumentError) { ObjectSpace.define_finalizer([], Object.new) } end @@ -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"], []) end def test_invalid_option @@ -231,7 +231,7 @@ class TestThread < Test::Unit::TestCase t1 = Thread.new { sleep } Thread.pass t2 = Thread.new { loop { } } - t3 = Thread.new { }.join p [Thread.current, t1, t2].map{|t| t.object_id }.sort p Thread.list.map{|t| t.object_id }.sort INPUT @@ -4,7 +4,7 @@ require_relative 'ruby/envutil' # mathn redefines too much. It must be isolated to child processes. class TestMathn < Test::Unit::TestCase def test_power - assert_in_out_err ['-r', 'mathn', '-e', 'a=1**2'], "", [], [], '[ruby-core:25740]' - assert_in_out_err ['-r', 'mathn', '-e', 'a=(1<<126)**2'], "", [], [], '[ruby-core:25740]' end end |