Skip to content

Commit 9e508ef

Browse files
committed
Use --mm:orc -d:useMalloc with Valgrind in order to avoid false positives.
1 parent 7217a54 commit 9e508ef

File tree

5 files changed

+167
-25
lines changed

5 files changed

+167
-25
lines changed

config.nims

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--define:nimStrictDelete
44
--define:ssl
55
--define:threadsafe
6+
--define:useMalloc
67
--hints:on
78
--mm:orc
89
--multimethods:on

testresults.html

+160-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/boat/tmain.nim

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
discard """
22
action: "run"
3+
cmd: "nim $target --hints:on -d:testing --mm:orc -d:useMalloc --nimblePath:build/deps/pkgs $options $file"
34
output: '''
45
All HANDS! cat o'nine tails! blue peter! OMG... landlubber
56
'''
6-
valgrind: "leaks"
7+
valgrind: "true"
78
"""
89

910
import boat

tests/config.nims

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
--define:nimPreviewJsonutilsHoleyEnum
99
--define:nimUnittestColor:off
1010
--define:nimUnittestOutputLevel:PRINT_FAILURES
11+
--define:useMalloc # required for valgrind
1112
--excessiveStackTrace:off
13+
--mm:orc # required for valgrind
1214
--path:"$projectDir/../../src"
1315
--processing:off

tests/config/tconfig.nim

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
discard """
22
action: "run"
3-
valgrind: "leaks"
3+
cmd: "nim $target --hints:on -d:testing --mm:orc -d:useMalloc --nimblePath:build/deps/pkgs $options $file"
44
exitcode: 0
5+
valgrind: true
56
"""
67

78
import ../../bdd

0 commit comments

Comments
 (0)