Nim/tests/exception
alaviss 0adb47aa15
system/excpt: check if the exception is not nil before pop (#18247)
In CPS we would consume an exception in the except branch by stashing it
into a local then remove the exception from Nim environment so as not to
leak it to other code that would be running before the continuation
continues

However since popCurrentException() assumes that the exception always
exist, removing the exception from an except branch will cause a
SIGSEGV to happen. This commit fixes that.
2021-06-14 18:26:12 +02:00
..
t9657.nim testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) 2020-12-14 10:58:29 +01:00
t13115.nim fix partially #13115 (now works for cpp; but still fails for js on openbsd) (#16167) 2020-12-11 10:35:05 +01:00
t16366.nim Make 'echo' raise IOErrors when appropriate (#16367) 2020-12-18 10:06:13 +01:00
tcontinuexc.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tcpp_imported_exc.nim refs #18011 disable some newly failing tests on cpp windows; refs #17946 increase timeout for tchannels (#18012) 2021-05-14 15:33:17 -07:00
tcpp_imported_exc2.nim fix #14369 (#14386) 2020-05-18 09:38:36 +02:00
tdefer1.nim Fix defer not not-working at top level (#10191) 2019-01-07 00:51:17 +01:00
tdont_overwrite_typename.nim fixes more nil handling regressions 2018-08-13 17:27:44 +02:00
testindexerroroutput.nims revive #10228 (fix #9880) (#10610) 2019-02-13 23:30:14 +01:00
texcas.nim make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151) 2020-11-28 09:09:31 +01:00
texception_inference.nim added a test case ensuring exception inference continues to work 2021-06-11 11:09:18 +02:00
texceptionbreak.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
texceptions.nim make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151) 2020-11-28 09:09:31 +01:00
texcpt1.nim Fixes 2018-06-12 00:28:09 +01:00
texcsub.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally2.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally3.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally4.nim --exception:goto switch for deterministic exception handling (#12977) 2020-01-01 10:01:49 +01:00
tnestedreturn.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tnestedreturn2.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
treraise.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tsetexceptions.nim system/excpt: check if the exception is not nil before pop (#18247) 2021-06-14 18:26:12 +02:00
tshow_real_exception_name.nim fixes #11309 (#11310) 2019-05-23 19:32:44 +02:00
tunhandledexc.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
twrongexc.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00