fix #14475; unittest.require now works with nim c; require and check now works with -d:nodejs (#14676)
* fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
This commit is contained in:
parent
ffaf4797be
commit
e07d661d16
6 changed files with 55 additions and 13 deletions
|
|
@ -1127,12 +1127,9 @@ const
|
|||
## is the value that should be passed to `quit <#quit,int>`_ to indicate
|
||||
## failure.
|
||||
|
||||
when defined(js) and defined(nodejs) and not defined(nimscript):
|
||||
var programResult* {.importc: "process.exitCode".}: int
|
||||
programResult = 0
|
||||
elif hostOS != "standalone":
|
||||
when not defined(js) and hostOS != "standalone":
|
||||
var programResult* {.compilerproc, exportc: "nim_program_result".}: int
|
||||
## deprecated, prefer ``quit``
|
||||
## deprecated, prefer `quit` or `exitprocs.getProgramResult`, `exitprocs.setProgramResult`.
|
||||
|
||||
import std/private/since
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue