3772 consider raising default descriptor soft limit
[unleashed.git] / usr / src / test / libc-tests / tests / select / select.sh
blobf0bd25c68feb328ca1a86d99c1c88f3ac0f5a7fa
1 #! /usr/bin/sh
4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
7 # 1.0 of the CDDL.
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
14 # Copyright 2016, Richard Lowe.
16 select_test=$(dirname $0)/select_test
19 # Below the stack and bulk alloc limits
20 i=0
21 while (( $i < 500 )); do
22 i=$(($i + 1))
24 $select_test 512 || exit 1
25 done;
27 # above the stack limit
28 i=0
29 while (( $i < 500 )); do
30 i=$(($i + 1))
32 $select_test 2048 || exit 1
33 done;
35 # above the bulk limit
36 i=0
37 while (( $i < 500 )); do
38 i=$(($i + 1))
40 $select_test 9001 || exit 1
41 done;