From 45008e03ec78e14895e00c415fa142875226680e Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 28 Apr 2008 13:36:48 +0000 Subject: [PATCH] Ignore bash bugs under valgrind --- ChangeLog | 5 +++++ tests/.valgrind.supp | 44 ++++++++++++++++++++++++++++++++++++++++++++ tests/Makefile.am | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 tests/.valgrind.supp diff --git a/ChangeLog b/ChangeLog index 7909150cc1..39f32ab25b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 28 09:32:22 EST 2008 Daniel P. Berrange + + * tests/.valgrind.supp, tests/Makefile.am: Ignore bash bugs when + running valgrind + Mon Apr 28 11:08:58 CEST 2008 Jim Meyering avoid format-related warnings diff --git a/tests/.valgrind.supp b/tests/.valgrind.supp new file mode 100644 index 0000000000..c8d459f969 --- /dev/null +++ b/tests/.valgrind.supp @@ -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 +} diff --git a/tests/Makefile.am b/tests/Makefile.am index 11586f82e0..5da694702d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 = \