summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:40:24 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:40:24 +0000
commitbd5c473b4b37ccd86dc592bc19168dd0afec99cd (patch)
tree19f0c7295cc3ec5720350466a30c1680bf1cb31c /bootstraptest
parent3296ddc54db92946b9739e1dc5d0a520cde0541f (diff)
downloadruby-bd5c473b4b37ccd86dc592bc19168dd0afec99cd.tar.gz
ruby-bd5c473b4b37ccd86dc592bc19168dd0afec99cd.tar.xz
ruby-bd5c473b4b37ccd86dc592bc19168dd0afec99cd.zip
merges r21086 from trunk into ruby_1_9_1.
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-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 9bef6ea85..820dc1f76 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"
+}
+