ruby-changes:2032
From: ko1@a...
Date: 26 Sep 2007 20:01:32 +0900
Subject: [ruby-changes:2032] ko1 - Ruby:r13523 (trunk): * bootstraptest/test_knownbug.rb: move fixed tests.
ko1 2007-09-26 20:01:18 +0900 (Wed, 26 Sep 2007) New Revision: 13523 Modified files: trunk/ChangeLog trunk/bootstraptest/test_knownbug.rb trunk/bootstraptest/test_method.rb trunk/test/ruby/test_io.rb Log: * bootstraptest/test_knownbug.rb: move fixed tests. * bootstraptest/test_method.rb: ditto. * test/ruby/test_io.rb: ditto. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io.rb?r1=13523&r2=13522 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13523&r2=13522 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_method.rb?r1=13523&r2=13522 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13523&r2=13522 Index: ChangeLog =================================================================== --- ChangeLog (revision 13522) +++ ChangeLog (revision 13523) @@ -1,3 +1,11 @@ +Wed Sep 26 20:00:12 2007 Koichi Sasada <ko1@a...> + + * bootstraptest/test_knownbug.rb: move fixed tests. + + * bootstraptest/test_method.rb: ditto. + + * test/ruby/test_io.rb: ditto. + Wed Sep 26 19:36:26 2007 Koichi Sasada <ko1@a...> * eval.c (eval): fix to check stack overflow. Index: bootstraptest/test_method.rb =================================================================== --- bootstraptest/test_method.rb (revision 13522) +++ bootstraptest/test_method.rb (revision 13523) @@ -957,3 +957,29 @@ end }, '[ruby-core:11998]' +assert_equal 'ok', %q{ + class B + def m() :fail end + end + class C < B + undef m + begin + remove_method :m + rescue NameError + end + end + begin + C.new.m + rescue NameError + :ok + end +}, '[ruby-dev:31816], [ruby-dev:31817]' + +assert_equal 'ok', %q{ + Process.setrlimit(Process::RLIMIT_STACK, 1024*1024) + class C + attr "a" * (2*1024*1024) + end + :ok +}, '[ruby-dev:31818]' + Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 13522) +++ bootstraptest/test_knownbug.rb (revision 13523) @@ -20,29 +20,3 @@ end }, 'rename test/ruby/test_io.rb#_test_ungetc if fixed' -assert_equal 'ok', %q{ - class B - def m() :fail end - end - class C < B - undef m - begin - remove_method :m - rescue NameError - end - end - begin - C.new.m - rescue NameError - :ok - end -}, '[ruby-dev:31816], [ruby-dev:31817]' - -assert_equal 'ok', %q{ - Process.setrlimit(Process::RLIMIT_STACK, 1024*1024) - class C - attr "a" * (2*1024*1024) - end - :ok -}, '[ruby-dev:31818]' - Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 13522) +++ test/ruby/test_io.rb (revision 13523) @@ -37,7 +37,7 @@ end # This test cause SEGV. - def _test_ungetc + def test_ungetc r, w = IO.pipe w.close assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml