one test (sometimes?) runs out of memory on i686, so limit parallelism as a workaround

This commit is contained in:
Rex Dieter 2021-01-12 12:24:48 -06:00
parent a6595cacfa
commit c99e94ccd3

View File

@ -456,9 +456,15 @@ NO_TEST="$NO_TEST|kwsys.testProcess-4|kwsys.testProcess-5"
%if %{with bootstrap} %if %{with bootstrap}
NO_TEST="$NO_TEST|curl" NO_TEST="$NO_TEST|curl"
%endif %endif
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -E "$NO_TEST" --output-on-failure %ifarch %{ix86}
# one test (sometimes?) runs out of memory, so limit parallelism as a workaround -- rdieter
%global smp_mflags -j2
%else
%global smp_mflags %{?smp_mflags}
%endif
bin/ctest%{?name_suffix} %{?smp_mflags} -V -E "$NO_TEST" --output-on-failure
# Keep an eye on failing tests # Keep an eye on failing tests
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -R "$NO_TEST" --output-on-failure || : bin/ctest%{?name_suffix} %{?smp_mflags} -V -R "$NO_TEST" --output-on-failure || :
popd popd
%if 0%{?rhel} && 0%{?rhel} <= 6 %if 0%{?rhel} && 0%{?rhel} <= 6
mv -f Modules/FindLibArchive.disabled Modules/FindLibArchive.cmake mv -f Modules/FindLibArchive.disabled Modules/FindLibArchive.cmake