summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2012-09-12 20:01:55 +0900
committerTomoyuki Sahara <[email protected]>2012-09-12 20:08:56 +0900
commit7a7f267b88904743278dc265fbecd46964ff1570 (patch)
tree13e6ac1459433e33a5ec2da5d13cd19cfc34f0a6 /test
parent3a49dfd198da706ffc5ccfc68125d8e332c1b354 (diff)
downloadmruby-7a7f267b88904743278dc265fbecd46964ff1570.tar.gz
mruby-7a7f267b88904743278dc265fbecd46964ff1570.zip
check if an Exception instance has a "mesg" attribute
fix the issue that "Exception.new.inspect" causes SIGSEGV.
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index 2ea319caa..76c165e95 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -269,3 +269,6 @@ assert('Exception 14') do
a == :ok
end
+assert('Exception#inspect without message') do
+ Exception.new.inspect
+end