mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 02:44:44 +00:00
Merge branch 'devel' into new-dependency-tracking
This commit is contained in:
@@ -841,15 +841,19 @@ elif not defined(useNimRtl):
|
||||
if data.workingDir.len > 0:
|
||||
setCurrentDir($data.workingDir)
|
||||
var pid: Pid
|
||||
var err: OSErrorCode
|
||||
|
||||
if data.optionPoUsePath:
|
||||
res = posix_spawnp(pid, data.sysCommand, fops, attr, data.sysArgs, data.sysEnv)
|
||||
if res != 0'i32: err = osLastError()
|
||||
else:
|
||||
res = posix_spawn(pid, data.sysCommand, fops, attr, data.sysArgs, data.sysEnv)
|
||||
if res != 0'i32: err = osLastError()
|
||||
|
||||
discard posix_spawn_file_actions_destroy(fops)
|
||||
discard posix_spawnattr_destroy(attr)
|
||||
chck res
|
||||
if res != 0'i32: raiseOSError(err)
|
||||
|
||||
return pid
|
||||
else:
|
||||
proc startProcessAuxFork(data: StartProcessData): Pid =
|
||||
|
||||
@@ -11,7 +11,7 @@ type
|
||||
script: seq[(string, string)]
|
||||
|
||||
const
|
||||
curDir = when defined(windows): "" else: "./"
|
||||
curDir = when defined(windows): "" else: ""
|
||||
DummyEof = "!EOF!"
|
||||
|
||||
proc parseTest(filename: string): Test =
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
$nimsuggest --tester ../nim/lib/pure/strutils.nim
|
||||
>def ../nim/lib/pure/strutils.nim:2300:6
|
||||
$nimsuggest --tester lib/pure/strutils.nim
|
||||
>def lib/pure/strutils.nim:2300:6
|
||||
def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"";;100
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user