Valgrind fixes

This commit is contained in:
Olof hagsand 2023-09-28 17:31:14 +02:00
parent 520f20def5
commit 794a17c2bb
5 changed files with 32 additions and 17 deletions

View file

@ -98,6 +98,8 @@ The `mem.sh` runs memory checks using valgrind. Start it with no arguments to te
mem.sh restconf backend # Only backend and cli
```
Valgrind uses a suppression file `valgrind-clixon.supp` to filter dlopen functions
## Run pattern of tests
The above scripts work with the `pattern` variable to limit the scope of which tests run, eg:

View file

@ -29,6 +29,13 @@
fun:*
fun:_dl_check_map_versions
}
{
supp4.1
Memcheck:Leak
match-leak-kinds: reachable
fun:*
fun:_dl_check_map_versions
}
{
supp5
Memcheck:Leak