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 76dd91f117
commit 05146e37a4

View File

@ -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