Skip to content

Commit

Permalink
Use --mm:orc -d:useMalloc with Valgrind in order to avoid false posit…
Browse files Browse the repository at this point in the history
…ives.
  • Loading branch information
noahehall committed Mar 15, 2023
1 parent 7217a54 commit 9e508ef
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 25 deletions.
1 change: 1 addition & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
--define:nimStrictDelete
--define:ssl
--define:threadsafe
--define:useMalloc
--hints:on
--mm:orc
--multimethods:on
Expand Down
183 changes: 160 additions & 23 deletions testresults.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/boat/tmain.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
discard """
action: "run"
cmd: "nim $target --hints:on -d:testing --mm:orc -d:useMalloc --nimblePath:build/deps/pkgs $options $file"
output: '''
All HANDS! cat o'nine tails! blue peter! OMG... landlubber
'''
valgrind: "leaks"
valgrind: "true"
"""

import boat
Expand Down
2 changes: 2 additions & 0 deletions tests/config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
--define:nimPreviewJsonutilsHoleyEnum
--define:nimUnittestColor:off
--define:nimUnittestOutputLevel:PRINT_FAILURES
--define:useMalloc # required for valgrind
--excessiveStackTrace:off
--mm:orc # required for valgrind
--path:"$projectDir/../../src"
--processing:off
3 changes: 2 additions & 1 deletion tests/config/tconfig.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
discard """
action: "run"
valgrind: "leaks"
cmd: "nim $target --hints:on -d:testing --mm:orc -d:useMalloc --nimblePath:build/deps/pkgs $options $file"
exitcode: 0
valgrind: true
"""

import ../../bdd
Expand Down

0 comments on commit 9e508ef

Please sign in to comment.