fixes #10273 execShellCmd now returns nonzero when child killed with signal + other fixes (#10274)

* 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
This commit is contained in:
Timothee Cour 2019-01-13 00:00:39 -08:00 • committed by Andreas Rumpf
commit 9af85fb69f
8 changed files with 148 additions and 41 deletions

View file

@ -6,6 +6,8 @@ discard """
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