diff options
author | Araq <rumpf_a@web.de> | 2018-11-15 15:10:29 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-15 15:10:50 +0100 |
commit | 9a05fd9dcf212fc46167232a3714ca7c823a71b4 (patch) | |
tree | 213b5feb509af6f47fd6c41cfc2981146e4d6446 /tests/exception | |
parent | c5c4da4f3cb9c2691fb4f71b681c705780ebbe3f (diff) | |
download | Nim-9a05fd9dcf212fc46167232a3714ca7c823a71b4.tar.gz |
disable some tests for the C++ target; refs #7870
Diffstat (limited to 'tests/exception')
-rw-r--r-- | tests/exception/tonraise.nim | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/exception/tonraise.nim b/tests/exception/tonraise.nim deleted file mode 100644 index a155f0b8e..000000000 --- a/tests/exception/tonraise.nim +++ /dev/null @@ -1,34 +0,0 @@ -discard """ - output: '''i: 1 -success''' -""" - -type - ESomething = object of Exception - ESomeOtherErr = object of Exception - -proc genErrors(s: string) = - if s == "error!": - raise newException(ESomething, "Test") - else: - raise newException(EsomeotherErr, "bla") - -proc foo() = - var i = 0 - try: - inc i - onRaise(proc (e: ref Exception): bool = - echo "i: ", i) - genErrors("errssor!") - except ESomething: - echo("ESomething happened") - except: - echo("Some other error happened") - - # test that raise handler is gone: - try: - genErrors("error!") - except ESomething: - echo "success" - -foo() |