mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 10:54:42 +00:00
Update testament to include all tests from tests/threads category. (#5576)
This commit is contained in:
committed by
Andreas Rumpf
parent
2d0ee2c8ab
commit
8310d252c2
@@ -186,25 +186,11 @@ proc longGCTests(r: var TResults, cat: Category, options: string) =
|
||||
|
||||
proc threadTests(r: var TResults, cat: Category, options: string) =
|
||||
template test(filename: untyped) =
|
||||
testSpec r, makeTest("tests/threads" / filename, options, cat, actionRun)
|
||||
testSpec r, makeTest("tests/threads" / filename, options &
|
||||
" -d:release", cat, actionRun)
|
||||
testSpec r, makeTest("tests/threads" / filename, options &
|
||||
" --tlsEmulation:on", cat, actionRun)
|
||||
|
||||
test "tactors"
|
||||
test "tactors2"
|
||||
test "threadex"
|
||||
# deactivated because output capturing still causes problems sometimes:
|
||||
#test "trecursive_actor"
|
||||
#test "threadring"
|
||||
#test "tthreadanalysis"
|
||||
#test "tthreadsort"
|
||||
test "tthreadanalysis2"
|
||||
#test "tthreadanalysis3"
|
||||
test "tthreadheapviolation1"
|
||||
test "tonthreadcreation"
|
||||
test "tracy_allocator"
|
||||
testSpec r, makeTest(filename, options, cat, actionRun)
|
||||
testSpec r, makeTest(filename, options & " -d:release", cat, actionRun)
|
||||
testSpec r, makeTest(filename, options & " --tlsEmulation:on", cat, actionRun)
|
||||
for t in os.walkFiles("tests/threads/t*.nim"):
|
||||
test(t)
|
||||
|
||||
# ------------------------- IO tests ------------------------------------------
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
discard """
|
||||
disabled: yes
|
||||
outputsub: "0"
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
discard """
|
||||
disabled: yes
|
||||
outputsub: "101"
|
||||
errormsg: "'threadFunc' is not GC-safe"
|
||||
line: 39
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
discard """
|
||||
disabled: yes
|
||||
outputsub: "channel is empty"
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user