]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Run valgrind tests with --run-libc-freeres=no.
authorMark Wielaard <mjw@redhat.com>
Mon, 3 Dec 2012 16:01:09 +0000 (17:01 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 3 Dec 2012 16:01:09 +0000 (17:01 +0100)
By default valgrind tries to free up glibc memory at exit by running
__libc_freeres (). Unfortunately some older glibc versions have bugs
that either crash the test or make valgrind report errors. Since we
aren't interested in tracking memory leaks in glibc anyway, just
disable it.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/Makefile.am

index 5b06b85f493472549d5cebc342ab7008ea391e5a..0289148b37a12e76a27c91ff495f672b9b536d5c 100644 (file)
@@ -1,3 +1,7 @@
+2012-12-03  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (valgrind_cmd): Add --run-libc-freeres=no.
+
 2012-11-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * run-addrname-test.sh: New test for PIE relocation.
index 6808bd1342fef37d429cfd43542cf6b72f717e9a..8b7b751fe1949b5a5148e82c8f867302b120127c 100644 (file)
@@ -184,7 +184,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
             testfile70.core.bz2 testfile70.exec.bz2
 
 if USE_VALGRIND
-valgrind_cmd="valgrind -q --trace-children=yes --error-exitcode=1"
+valgrind_cmd="valgrind -q --trace-children=yes --error-exitcode=1 --run-libc-freeres=no"
 endif
 
 installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \