Add test for bad spawn argument.
This commit is contained in:
parent
171f4a21e8
commit
d29cf2d0e2
1 changed files with 7 additions and 0 deletions
7
tests/system/tsysspawnbadarg.nim
Normal file
7
tests/system/tsysspawnbadarg.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
line: 7
|
||||
errormsg: "'spawn' takes a call expression of type void"
|
||||
cmd: "nimrod $target --threads:on $options $file"
|
||||
"""
|
||||
|
||||
spawn(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue