summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-18 14:53:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-18 14:53:55 +0000
commit63fabd365a5ca9fb1ff303bd58e3135cfacc9c71 (patch)
treea457af4b5a906ede396c381d360a4ffdbdef07e9 /bootstraptest
parentf2266fe471e77fb972fa0668b6345fc4940904e2 (diff)
* compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_eval.rb5
-rw-r--r--bootstraptest/test_knownbug.rb4
2 files changed, 5 insertions, 4 deletions
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb
index ed3deba989..2f5e912074 100644
--- a/bootstraptest/test_eval.rb
+++ b/bootstraptest/test_eval.rb
@@ -188,3 +188,8 @@ assert_equal %q{[10, main]}, %q{
C.new(&$pr)
$ans
}
+
+assert_match /Illegal break/, %q{
+ STDERR.reopen(STDOUT)
+ eval "0 rescue break"
+}, '[ruby-dev:31372]'
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index e585ba5fe2..345e5c68df 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -36,10 +36,6 @@ assert_equal 'ok', %q{
}
assert_normal_exit %q{
- eval "0 rescue break"
-}, '[ruby-dev:31372]'
-
-assert_normal_exit %q{
eval "while true; return; end rescue p $!"
}, '[ruby-dev:31663]'