commit:     7f6d94683ee5b49d970895310185972ef08cb689
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 10:40:16 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=7f6d9468

cmake.eclass: Prepare for makeopts_jobs default inf change

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

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

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 3d4cc0bd7128..59e5b60957c2 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.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.eclass
@@ -674,7 +674,8 @@ cmake_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