* trigger valgrind failure on memory leak * remove non-malloc tests * remove ORC test is redundant because we already have an ARC test * only run valgrind tests on 64-bit Linux * disable freebsd and openbsd * Remove tleak_refc As to not test implementation details (or bug) * Fix test failures by removing redundant test Since this tests/shoulfail/tvalgrind.nim was specified here to fail this test itself fails since it will be skipped on non-linux CI * Remove test, reason detailed in the previous commit * Remove redundant disables * Revert removing disables * Add and use valgrind: leaks * Fix Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: n5m
This commit is contained in:
parent
833035bacd
commit
436e1fa5b1
6 changed files with 35 additions and 9 deletions
|
|
@ -501,8 +501,11 @@ proc testSpecHelper(r: var TResults, test: var TTest, expected: TSpec,
|
|||
args = concat(@[exeFile], args)
|
||||
else:
|
||||
exeCmd = exeFile.dup(normalizeExe)
|
||||
if expected.useValgrind:
|
||||
args = @["--error-exitcode=1"] & exeCmd & args
|
||||
if expected.useValgrind != disabled:
|
||||
var valgrindOptions = @["--error-exitcode=1"]
|
||||
if expected.useValgrind != leaking:
|
||||
valgrindOptions.add "--leak-check=yes"
|
||||
args = valgrindOptions & exeCmd & args
|
||||
exeCmd = "valgrind"
|
||||
var (_, buf, exitCode) = execCmdEx2(exeCmd, args, input = expected.input)
|
||||
# Treat all failure codes from nodejs as 1. Older versions of nodejs used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue