From 05146e37a4ce4efe1a74312d16226b9088678089 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 27 Jul 2017 17:14:26 +0200 Subject: [PATCH] Run valgrind check with --error-exitcode=1. Fix valgrind BuildRequires. --- glibc.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glibc.spec b/glibc.spec index 13d6108..1a87185 100644 --- a/glibc.spec +++ b/glibc.spec @@ -294,7 +294,7 @@ BuildRequires: systemtap-sdt-devel %if %{with valgrind} # Require valgrind for smoke testing the dynamic loader to make sure we # have not broken valgrind. -BuildRequires: /usr/bin/valgrind +BuildRequires: valgrind %endif # We use systemd rpm macros for nscd @@ -1865,7 +1865,8 @@ pushd build-%{target} LD_SHOW_AUXV=1 elf/ld.so --library-path .:elf:nptl:dlfcn /bin/true %if %{with valgrind} -elf/ld.so --library-path .:elf:nptl:dlfcn /usr/bin/valgrind \ +elf/ld.so --library-path .:elf:nptl:dlfcn \ + /usr/bin/valgrind --error-exitcode=1 \ elf/ld.so --library-path .:elf:nptl:dlfcn /usr/bin/true %endif popd