summaryrefslogtreecommitdiffhomepage
path: root/test/t/exception.rb
AgeCommit message (Collapse)Author
2020-01-27Fixed backtrace message for top-level blocks; fix #4936Yukihiro "Matz" Matsumoto
In top-level, `mid` is `NULL`. We used to ignore 'mid` update for `NULL`.
2019-12-14Remove location info from `Exception#inspect`KOBAYASHI Shuji
Because location info (file name and line number) is kept in the backtrace, it should not be kept in the result of `inspect` (and the exception object itself), I think. ### Example ```ruby # example.rb begin raise "err" rescue => e p e end ``` #### Before this patch: ``` $ bin/mruby example.rb example.rb:2: err (RuntimeError) ``` #### After this patch: ``` $ bin/mruby example.rb err (RuntimeError) ```
2019-01-12Use `__send__` instead of `send`; ref #4207KOBAYASHI Shuji
2017-05-23Remove class info from backtrace lines.Yukihiro "Matz" Matsumoto
2017-03-19Remove cname duplication from exc_inspect().Yukihiro "Matz" Matsumoto
2016-11-07fixed wrong stack adjustment for ensure clauses; fix #3175Yukihiro "Matz" Matsumoto
2016-08-15Correct method nameFranck Verrot
2015-12-29Skip backtrace related tests when backtrace isn't availableKouhei Sutou
2015-12-29Support backtrace after method callsKouhei Sutou
GitHub: fix #2902, #2917 The current implementation traverses stack to retrieve backtrace. But stack will be changed when some operations are occurred. It means that backtrace may be broken after some operations. This change (1) saves the minimum information to retrieve backtrace when exception is raised and (2) restores backtrace from the minimum information when backtrace is needed. It reduces overhead for creating backtrace Ruby objects. The space for the minimum information is reused by multiple exceptions. So memory allocation isn't occurred for each exception.
2014-06-15Move direct superclass checking to `test/t/superclass.rb`.take_cheeze
2014-05-25Exception#exception fix testksss
Exception.exception is not call Exception#exception. Test for Exception#exception should call Exception#exception method.
2014-05-20Correct comment in exception test.yui-knk
2014-05-20update raise in ensure testYukihiro "Matz" Matsumoto
2014-05-20correct comment; ref #2297Yukihiro "Matz" Matsumoto
2014-05-20Merge branch 'add-exception-test' of https://github.com/yui-knk/mruby into ↵Yukihiro "Matz" Matsumoto
yui-knk-add-exception-test
2014-05-20Add 'Raise in rescue' test to exception.yui-knk
2014-05-10Delete unused NameError#new. And add test.yui-knk
2014-05-10Add assert to Exception#inspect test.yui-knk
2014-05-09Refactoring test to use assert_nothing_raised.yui-knk
2014-05-05Refactoring exception test.yui-knk
Change to use assert_equal explicitly.
2014-01-05Test for raise in ensureCarson McDonald
2013-09-03remove Exception#verbose_backtrace; #1495Yukihiro "Matz" Matsumoto
2013-09-02add verbose_backtracetake_cheeze
2013-09-02add Exception#backtrace testtake_cheeze
2013-08-02I fix order of actual and expect test value in exception.rb.Jun Hiroe
2013-06-09Improve Exception testsDaniel Bovensiepen
2013-04-17catching NameError here is not desirable.Tomoyuki Sahara
2013-04-17rollback stack before executing ensure clause.Tomoyuki Sahara
2013-04-09although I understand the intntion of 039679f1, consuming all memory in the ↵Yukihiro "Matz" Matsumoto
test program is not a good idea
2013-02-27Increase TEST_INFINITE_RECURSION_MAX value from 100000 to 1000000 because ↵Masamitsu MURASE
modification of handling of `NODE_RETURN` reduces stack size.
2013-02-25Add more tests for `begin` and `rescue`.Masamitsu MURASE
2012-11-22Keep stack depth and allocation better under control and fix crash on ↵Beoran
infinite recursion.
2012-10-20add test case for 750b7c2Yukihiro Matsumoto
2012-09-12check if an Exception instance has a "mesg" attributeTomoyuki Sahara
fix the issue that "Exception.new.inspect" causes SIGSEGV.
2012-08-13Add more test for exception.Masamitsu MURASE
2012-06-15remove LoadErrorYukihiro Matsumoto
2012-06-15Move Subclasses of ScriptError to mrblib.Masaki Muranaka
2012-06-03Add superclass tests for ExceptionsDaniel Bovensiepen
2012-06-03A rescue clause with no parameter list rescues only StandardErrorsKazuki Tsujimoto
2012-05-25Add Tests for all Exception classes, for false, true, Proc, Module, nil and ↵Daniel Bovensiepen
Object