aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 11:01:18 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 11:01:18 +0000
commitff2af1ed9843ac3bb7cddc014b58b5dcde225ebd (patch)
treeb136b1826b62f83c57a1792971a692876edfa4cf
parentf902e0946044222e4214ddde0e63ba64a435d7bb (diff)
downloadruby-ff2af1ed9843ac3bb7cddc014b58b5dcde225ebd.tar.gz
* bootstraptest/test_knownbug.rb: move fixed tests.
* bootstraptest/test_method.rb: ditto. * test/ruby/test_io.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--bootstraptest/test_knownbug.rb26
-rw-r--r--bootstraptest/test_method.rb26
-rw-r--r--test/ruby/test_io.rb2
4 files changed, 35 insertions, 27 deletions
diff --git a/ChangeLog b/ChangeLog
index cb3a4ae980..49ec552f40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Wed Sep 26 20:00:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * 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@atdot.net>
* eval.c (eval): fix to check stack overflow.
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 07ba5e8e2c..7646885258 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -20,29 +20,3 @@ ensure
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]'
-
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb
index bca80087bb..81d90041b7 100644
--- a/bootstraptest/test_method.rb
+++ b/bootstraptest/test_method.rb
@@ -957,3 +957,29 @@ assert_equal 'ok', %q{
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]'
+
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index e1859ad4f0..7da6535edf 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -37,7 +37,7 @@ class TestIO < Test::Unit::TestCase
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" } }