summaryrefslogtreecommitdiffstats
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
commit6b7f1f56c8ab9164f2e4a3db09464f71c5bfd443 (patch)
treeb136b1826b62f83c57a1792971a692876edfa4cf
parent4226814365800438b4935b933c6c37e23f92a63b (diff)
downloadruby-6b7f1f56c8ab9164f2e4a3db09464f71c5bfd443.tar.gz
ruby-6b7f1f56c8ab9164f2e4a3db09464f71c5bfd443.tar.xz
ruby-6b7f1f56c8ab9164f2e4a3db09464f71c5bfd443.zip
* bootstraptest/test_knownbug.rb: move fixed tests.
* bootstraptest/test_method.rb: ditto. * test/ruby/test_io.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/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 cb3a4ae98..49ec552f4 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 07ba5e8e2..764688525 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 bca80087b..81d90041b 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 e1859ad4f..7da6535ed 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" } }