Added a valgrind suppression file to ignore check errors.

This commit is contained in:
Andreas Schneider
2010-03-13 17:10:53 +01:00
parent 4516e7bdcb
commit 67c062e45e
2 changed files with 25 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
set(UPDATE_TYPE "true")
#set(MEMORYCHECK_SUPPRESSIONS_FILE ${CMAKE_SOURCE_DIR}/tests/valgrind.supp)
set(MEMORYCHECK_SUPPRESSIONS_FILE ${CMAKE_SOURCE_DIR}/tests/valgrind.supp)
set(CTEST_PROJECT_NAME "libssh")
set(CTEST_NIGHTLY_START_TIME "04:00:00 CET")

24
tests/valgrind.supp Normal file
View File

@@ -0,0 +1,24 @@
### CHECK
{
check emalloc
Memcheck:Leak
fun:malloc
fun:emalloc
}
{
check setup_pipe
Memcheck:Leak
fun:malloc
fun:fdopen@@GLIBC_2.2.5
fun:tmpfile@@GLIBC_2.2.5
fun:setup_pipe
}
{
check erealloc
Memcheck:Leak
fun:realloc
fun:erealloc
}