Skip to content

Commit 23f74eb

Browse files
committed
fix valgrind errors on my machine
1 parent 878c481 commit 23f74eb

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.valgrind_suppressions

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
not_our_bug
3+
Memcheck:Cond
4+
fun:__gconv_transform_internal_utf8
5+
fun:wcsrtombs
6+
fun:wcstombs
7+
fun:tre_parse_bracket_items
8+
fun:tre_parse_bracket
9+
fun:tre_parse
10+
fun:tre_compile
11+
fun:tre_regcompb
12+
}
13+
{
14+
not_our_bug_either
15+
Memcheck:Cond
16+
fun:__wcsnlen_avx2
17+
fun:wcsrtombs
18+
fun:wcstombs
19+
fun:tre_parse_bracket_items
20+
fun:tre_parse_bracket
21+
fun:tre_parse
22+
fun:tre_compile
23+
fun:tre_regcompb
24+
}

tools/tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function run_test {
4545
VALGRIND=""
4646

4747
if [[ "$ENABLE_VALGRIND" == "1" ]]; then
48-
VALGRIND="-d valgrind --debugger-args=--error-exitcode=13"
48+
VALGRIND="-d valgrind --debugger-args=--error-exitcode=13 --debugger-args=--suppressions=$ROOT_DIR/.valgrind_suppressions"
4949
fi
5050

5151
if test "$(uname)" = "Darwin"; then

0 commit comments

Comments
 (0)