commit:     0b57b043860f61517120594aa3edafa273e0482b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 10:40:28 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May  1 07:30:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b57b043

cmake-utils.eclass: Prepare for makeopts_jobs default inf change

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/cmake-utils.eclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 85a9367b04b7..4ec3b900edaf 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: cmake-utils.eclass
@@ -806,7 +806,8 @@ cmake-utils_src_test() {
 
        [[ -n ${TEST_VERBOSE} ]] && myctestargs+=( --extra-verbose 
--output-on-failure )
 
-       set -- ctest -j "$(makeopts_jobs)" --test-load "$(makeopts_loadavg)" 
"${myctestargs[@]}" "$@"
+       set -- ctest -j "$(makeopts_jobs "${MAKEOPTS}" 999)" \
+               --test-load "$(makeopts_loadavg)" "${myctestargs[@]}" "$@"
        echo "$@" >&2
        if "$@" ; then
                einfo "Tests succeeded."

Reply via email to