summaryrefslogtreecommitdiff
path: root/bootstraptest/test_eval.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-03 10:48:35 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-03 10:48:35 +0000
commit1421b85ea242c64272a3bed9974d834d305926b6 (patch)
tree66ff83b79f457c7ce9ab8f3028cc32c3b70e1d1c /bootstraptest/test_eval.rb
parent059fe7997e0c9bf0861f8e6ff9a00277cb5846f6 (diff)
* bootstraptest/test_eval.rb, test_knownbug.rb: move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_eval.rb')
-rw-r--r--bootstraptest/test_eval.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb
index b2a5762460..a0e37b9b9a 100644
--- a/bootstraptest/test_eval.rb
+++ b/bootstraptest/test_eval.rb
@@ -198,3 +198,13 @@ assert_equal %q{[10, main]}, %q{
end
}, '[ruby-dev:31372]'
end
+
+assert_normal_exit %q{
+ STDERR.reopen(STDOUT)
+ class Foo
+ def self.add_method
+ class_eval("def some-bad-name; puts 'hello' unless @some_variable.some_function(''); end")
+ end
+ end
+ Foo.add_method
+}, '[ruby-core:14556] reported by Frederick Cheung'