]> xenbits.xensource.com Git - libvirt.git/commitdiff
Ignore bash bugs under valgrind
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 28 Apr 2008 13:36:48 +0000 (13:36 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 28 Apr 2008 13:36:48 +0000 (13:36 +0000)
ChangeLog
tests/.valgrind.supp [new file with mode: 0644]
tests/Makefile.am

index 7909150cc1dcb8c3ef304984b5ab8fd6548d7045..39f32ab25bfcbc581e77f15c8ec6165a2b2f3d0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/tests/.valgrind.supp b/tests/.valgrind.supp
new file mode 100644 (file)
index 0000000..c8d459f
--- /dev/null
@@ -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
+}
index 11586f82e0c9187e4a83da513883db3afcbc7f6f..5da694702d8f31f0f3c13f0c1137be15d66ef480 100644 (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 = \