disable some tests for the C++ target; refs #7870
This commit is contained in:
parent
c5c4da4f3c
commit
9a05fd9dcf
8 changed files with 25 additions and 44 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
file: "tclosure.nim"
|
||||
target: "c"
|
||||
output: '''
|
||||
1 3 6 11 20 foo
|
||||
foo88
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
discard """
|
||||
target: "c"
|
||||
"""
|
||||
|
||||
import coro
|
||||
var
|
||||
stackCheckValue = 1100220033
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
discard """
|
||||
target: "c"
|
||||
"""
|
||||
|
||||
import coro
|
||||
|
||||
var maxOccupiedMemory = 0
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
discard """
|
||||
target: "c"
|
||||
"""
|
||||
|
||||
import coro
|
||||
include system/timers
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
discard """
|
||||
output: "Exit 1\nExit 2"
|
||||
disabled: "macosx"
|
||||
target: "c"
|
||||
"""
|
||||
import coro
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
file: "tgenscript.nim"
|
||||
target: "c"
|
||||
"""
|
||||
|
||||
echo "--genscript"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
discard """
|
||||
output: '''1 [2, 3, 4, 7]
|
||||
[0, 0]'''
|
||||
target: "c"
|
||||
"""
|
||||
|
||||
# Nim RTree and R*Tree implementation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue