test/java/net/ServerSocket/AcceptCauseFileDescriptorLeak.sh

Print this page




  28 # @run shell AcceptCauseFileDescriptorLeak.sh
  29 
  30 OS=`uname -s`
  31 case "$OS" in
  32     Windows_* | CYGWIN* )
  33         echo "ulimit not on Windows"
  34         exit 0
  35         ;;
  36     * )
  37         CLASSPATH=${TESTCLASSES}:${TESTSRC}
  38         ;;
  39 esac
  40 export CLASSPATH
  41 
  42 # hard limit needs to be less than 1024 for this bug
  43 NOFILES=`ulimit -n -H`
  44 if [ "$NOFILES" = "unlimited" ] || [ $NOFILES -ge 1024 ]; then
  45     ulimit -n 1024
  46 fi
  47 
  48 ${TESTJAVA}/bin/java ${TESTVMOPTS} AcceptCauseFileDescriptorLeak


  28 # @run shell AcceptCauseFileDescriptorLeak.sh
  29 
  30 OS=`uname -s`
  31 case "$OS" in
  32     Windows_* | CYGWIN* )
  33         echo "ulimit not on Windows"
  34         exit 0
  35         ;;
  36     * )
  37         CLASSPATH=${TESTCLASSES}:${TESTSRC}
  38         ;;
  39 esac
  40 export CLASSPATH
  41 
  42 # hard limit needs to be less than 1024 for this bug
  43 NOFILES=`ulimit -n -H`
  44 if [ "$NOFILES" = "unlimited" ] || [ $NOFILES -ge 1024 ]; then
  45     ulimit -n 1024
  46 fi
  47 
  48 ${TESTJAVA}/bin/java ${TESTVMOPTS} ${TESTJAVAOPTS} AcceptCauseFileDescriptorLeak