Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
c0ffb71e
Unverified
Commit
c0ffb71e
authored
Nov 07, 2020
by
James Lamb
Committed by
GitHub
Nov 07, 2020
Browse files
[ci] Make valgrind check stricter (#3536)
parent
da6c6ea3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
.ci/test_r_package_valgrind.sh
.ci/test_r_package_valgrind.sh
+18
-0
No files found.
.ci/test_r_package_valgrind.sh
View file @
c0ffb71e
...
...
@@ -64,3 +64,21 @@ if [[ ${bytes_possibly_lost} -gt 352 ]]; then
echo
"valgrind found
${
bytes_possibly_lost
}
bytes possibly lost"
exit
-1
fi
invalid_reads
=
$(
cat
${
VALGRIND_LOGS_FILE
}
\
|
grep
--count
-i
"Invalid read"
)
if
[[
${
invalid_reads
}
-gt
0
]]
;
then
echo
"valgrind found invalid reads:
${
invalid_reads
}
"
exit
-1
fi
invalid_writes
=
$(
cat
${
VALGRIND_LOGS_FILE
}
\
|
grep
--count
-i
"Invalid write"
)
if
[[
${
invalid_writes
}
-gt
0
]]
;
then
echo
"valgrind found invalid writes:
${
invalid_writes
}
"
exit
-1
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment