Skip to content

Commit

Permalink
Add valgrind suppression for linux (related to casadi + ipopt)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Jul 14, 2020
1 parent 121a2a9 commit 6311dac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/AddBipedalLocomotionUnitTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if (FRAMEWORK_RUN_Valgrind_tests)
set(MEMORYCHECK_COMMAND ${VALGRIND_PROGRAM})
if (APPLE)
set(MEMORYCHECK_SUPPRESSIONS "--suppressions=${PROJECT_SOURCE_DIR}/cmake/valgrind-macos.supp")
elseif (UNIX AND NOT APPLE)
set(MEMORYCHECK_SUPPRESSIONS "--suppressions=${PROJECT_SOURCE_DIR}/cmake/valgrind-linux.supp")
else ()
set(MEMORYCHECK_SUPPRESSIONS "")
endif ()
Expand Down
18 changes: 18 additions & 0 deletions cmake/valgrind-linux.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
<ubuntu-18.04-casadi-ipopt>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:get_num_procs
fun:blas_get_cpu_number
fun:gotoblas_init
fun:call_init
fun:_dl_init
fun:dl_open_worker
fun:_dl_catch_exception
fun:_dl_open
fun:dlopen_doit
fun:_dl_catch_exception
fun:_dl_catch_error
fun:_dlerror_run
}

0 comments on commit 6311dac

Please sign in to comment.