diff options
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-x | tests/runtest.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh index fdc067eb2d..e238723743 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -733,8 +733,10 @@ function run_test { # Variables for running tests in the background if [ `uname` = "NetBSD" ]; then NumProc=$(getconf NPROCESSORS_ONLN) -else +elif [ `uname` = "Darwin" ]; then NumProc=$(getconf _NPROCESSORS_ONLN) +else + NumProc=$(nproc --all) fi ((maxProcesses = $NumProc * 3 / 2)) # long tests delay process creation, use a few more processors |