diff options
| author | Tomoyuki Sahara <[email protected]> | 2012-09-12 20:01:55 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2012-09-12 20:08:56 +0900 |
| commit | 7a7f267b88904743278dc265fbecd46964ff1570 (patch) | |
| tree | 13e6ac1459433e33a5ec2da5d13cd19cfc34f0a6 /test | |
| parent | 3a49dfd198da706ffc5ccfc68125d8e332c1b354 (diff) | |
| download | mruby-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.rb | 3 |
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 |
