mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
[9.20] fix: test: Do not rely on failure in default configuration
Backport of MR !10631 Merge branch 'backport-main-systemtest-cpu-hang-9.20' into 'bind-9.20' See merge request isc-projects/bind9!10638
This commit is contained in:
commit
7cc623ece1
@ -54,7 +54,8 @@ ret=0
|
||||
for cpu in $(cpulist); do
|
||||
n=$((n + 1))
|
||||
echo_i "testing that limiting CPU sets to 0-${cpu} works ($n)"
|
||||
cpulimit 0 "$cpu" "$NAMED" -g >named.run.$n 2>&1 || true
|
||||
# intentionally fail running the named, but print number of detected cpus during it
|
||||
cpulimit 0 "$cpu" "$NAMED" -g -c missing.conf >named.run.$n 2>&1 || true
|
||||
ncpus=$(sed -ne 's/.*found \([0-9]*\) CPU.*\([0-9]*\) worker thread.*/\1/p' named.run.$n)
|
||||
[ "$ncpus" -eq "$((cpu + 1))" ] || ret=1
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user