vtest "thread_pool_reserve max adjustment"

server s1 {
} -start

vinyl v1 \
	-arg "-p thread_pool_min=10" \
	-arg "-p thread_pool_max=100" \
	-arg "-p thread_pools=1" \
	-arg "-p thread_pool_timeout=10" \
	-vcl+backend {}
vinyl v1 -start

vinyl v1 -cliok "param.set thread_pool_reserve 0"
vinyl v1 -cliok "param.set thread_pool_reserve 1"
vinyl v1 -cliok "param.set thread_pool_reserve 9"
vinyl v1 -clierr 106 "param.set thread_pool_reserve 10"

vinyl v1 -cliok "param.set thread_pool_min 100"
vinyl v1 -cliok "param.set thread_pool_reserve 0"
vinyl v1 -cliok "param.set thread_pool_reserve 1"
vinyl v1 -cliok "param.set thread_pool_reserve 95"
vinyl v1 -clierr 106 "param.set thread_pool_reserve 96"
