From 7a7f267b88904743278dc265fbecd46964ff1570 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Wed, 12 Sep 2012 20:01:55 +0900 Subject: check if an Exception instance has a "mesg" attribute fix the issue that "Exception.new.inspect" causes SIGSEGV. --- test/t/exception.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 -- cgit v1.2.3