summaryrefslogtreecommitdiff
path: root/bootstraptest/test_proc.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-27 04:45:28 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-27 04:45:28 +0000
commitbd96f1fe705c973af8c6e1aec92802ba692b9b52 (patch)
treeecc3b3c539440a8473a90ac73beb04c8f9ac7d65 /bootstraptest/test_proc.rb
parente434135ecbc8e00c9e036fb14df399224a478925 (diff)
* eval.c (get_errinfo): return th->errinfo value
if normal errinfo place (dynamic local viriable) is not found. fixes Bug #732 [ruby-dev:37046]. * bootstraptest/test_proc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_proc.rb')
-rw-r--r--bootstraptest/test_proc.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb
index 9bef6ea..820dc1f 100644
--- a/bootstraptest/test_proc.rb
+++ b/bootstraptest/test_proc.rb
@@ -418,3 +418,11 @@ assert_equal 'foo!', %q{
fp.bar
}, 'Subclass of Proc'
+
+assert_equal 'ok', %q{
+ at_exit{
+ print $!.message
+ }
+ raise "ok"
+}
+