Ignore bash bugs under valgrind

This commit is contained in:
Daniel P. Berrange 2008-04-28 13:36:48 +00:00
parent 212472b813
commit 45008e03ec
3 changed files with 50 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Apr 28 09:32:22 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* tests/.valgrind.supp, tests/Makefile.am: Ignore bash bugs when
running valgrind
Mon Apr 28 11:08:58 CEST 2008 Jim Meyering <meyering@redhat.com>
avoid format-related warnings

44
tests/.valgrind.supp Normal file
View File

@ -0,0 +1,44 @@
{
bashMemoryLeak1
Memcheck:Leak
fun:malloc
fun:xmalloc
fun:set_signal
fun:trap_builtin
obj:/bin/bash
obj:/bin/bash
fun:execute_command_internal
fun:parse_and_execute
obj:/bin/bash
fun:source_file
fun:source_builtin
obj:/bin/bash
}
{
bashMemoryLeak2
Memcheck:Leak
fun:malloc
fun:xmalloc
fun:make_command
fun:yyparse
fun:parse_command
fun:read_command
fun:reader_loop
fun:main
}
{
bashMemoryLeak3
Memcheck:Leak
fun:malloc
fun:xmalloc
obj:/bin/bash
fun:execute_command_internal
obj:/bin/bash
fun:execute_command_internal
fun:execute_command_internal
obj:/bin/bash
obj:/bin/bash
fun:execute_command_internal
fun:parse_and_execute
fun:command_substitute
}

View File

@ -73,7 +73,7 @@ TESTS_ENVIRONMENT = \
$(VG)
valgrind:
$(MAKE) check VG="valgrind --quiet --leak-check=full"
$(MAKE) check VG="valgrind --quiet --leak-check=full --suppressions=$(srcdir)/.valgrind.supp"
# Note: xmlrpc.[c|h] is not in libvirt yet
xmlrpctest_SOURCES = \