summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-28 12:40:16 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-01 09:30:34 +0200
commit7f6d94683ee5b49d970895310185972ef08cb689 (patch)
tree79c06d15509bc70ba0011a4ab268ae46946f0df4 /eclass/cmake.eclass
parentmedia-sound/apulse: Prepare for makeopts_jobs default inf change (diff)
downloadgentoo-7f6d94683ee5b49d970895310185972ef08cb689.tar.gz
gentoo-7f6d94683ee5b49d970895310185972ef08cb689.tar.bz2
gentoo-7f6d94683ee5b49d970895310185972ef08cb689.zip
cmake.eclass: Prepare for makeopts_jobs default inf change
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/cmake.eclass')
-rw-r--r--eclass/cmake.eclass5
1 files 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."