fixes nim check with orc (#20456)

* fixes nim check with orc

* fixes tests

* add tests

* fixes tests

* Update tests/arc/t20456.nim
This commit is contained in:
ringabout 2022-10-02 12:44:10 +08:00 • committed by GitHub
commit 81e7811e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 1 deletions

1
tests/misc/m20456.nims Normal file
View file

@ -0,0 +1 @@
echo 123

14
tests/misc/t20456_2.nim Normal file
View file

@ -0,0 +1,14 @@
discard """
joinable: false
"""
import std/[osproc, os, strformat]
from stdtest/specialpaths import testsDir
when defined(nimPreviewSlimSystem):
import std/assertions
const
nim = getCurrentCompilerExe()
file = testsDir / "misc" / "m20456.nims"
doAssert execCmd(fmt"{nim} check {file}") == 0