Run valgrind check with --error-exitcode=1. Fix valgrind BuildRequires.

This commit is contained in:
Mark Wielaard 2017-07-27 17:14:26 +02:00 committed by Florian Weimer
parent 5c43ec8cb6
commit e4a37ded6e

View File

@ -315,7 +315,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
@ -1970,7 +1970,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