mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
* s/exitStatus(...)/exitStatusLikeShell(...)/ * fix #10273 execShellCmd now returns nonzero when child exits with signal * test case for #10249 and explanation for the bug * fix test failure * add tests/nim.cfg
16 lines
268 B
Nim
16 lines
268 B
Nim
discard """
|
|
target: cpp
|
|
action: run
|
|
exitcode: 0
|
|
"""
|
|
|
|
import os
|
|
|
|
# consider moving this inside tosproc (taking care that it's for cpp mode)
|
|
|
|
if paramCount() == 0:
|
|
# main process
|
|
doAssert execShellCmd(getAppFilename().quoteShell & " test") == 1
|
|
else:
|
|
quit 1
|