From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sun, 14 Jun 2026 03:40:50 +0000 (+0900) Subject: tests: nproc: ensure OMP_NUM_THREADS overflow is clamped X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19fb2a9aa333bd466908bc8558ec8fe30e0576ec;p=thirdparty%2Fcoreutils.git tests: nproc: ensure OMP_NUM_THREADS overflow is clamped * tests/nproc/nproc-override.sh: Test overflowed OMP_NUM_THREADS. https://github.com/coreutils/coreutils/pull/292 --- diff --git a/tests/nproc/nproc-override.sh b/tests/nproc/nproc-override.sh index c740bfee8..3d18f59a7 100755 --- a/tests/nproc/nproc-override.sh +++ b/tests/nproc/nproc-override.sh @@ -18,6 +18,7 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ nproc +getlimits_ unset OMP_NUM_THREADS unset OMP_THREADS_LIMIT @@ -38,6 +39,7 @@ echo "\ 1 2,2,1 1 0 2,2,1 2 1bad 2,2,1 2 + - ${ULONG_OFLOW} ${ULONG_MAX} 1bad $(($avail+1)),2,1 $(($avail+1)) 1 $(($avail+1)) 1 $(($avail+2)) $(($avail+1)) $(($avail+1))