diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-05 23:06:50 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-05 23:06:50 +0000 |
commit | fdcc9c9e43ea8e67479e604a741b8fad09239ec8 (patch) | |
tree | 33bef5a8fa7ca8dae0b1db3330f05e4e0a1cddeb /test/ruby | |
parent | c076d6009c4f3e979930b6060e35338172ba34e6 (diff) | |
download | ruby-fdcc9c9e43ea8e67479e604a741b8fad09239ec8.tar.gz |
Don't set throw data as cause [Bug #15282]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 8784dd7dd7..88b02293e8 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -699,6 +699,12 @@ end.join assert_same(a, e.cause.cause) end + def test_cause_at_end + assert_in_out_err([], <<-'end;', [], [/-: unexpected return\n/, /.*undefined local variable or method `n'.*\n/]) + END{n}; END{return} + end; + end + def test_raise_with_cause msg = "[Feature #8257]" cause = ArgumentError.new("foobar") |