test/com/sun/management/UnixOperatingSystemMXBean/GetMaxFileDescriptorCount.sh

Print this page

        

*** 28,50 **** # @author Steve Bohne # # @run shell GetMaxFileDescriptorCount.sh # ! #Set appropriate jdk ! ! if [ ! -z "${TESTJAVA}" ] ; then ! jdk="$TESTJAVA" ! else echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test." exit 1 fi runOne() { echo "runOne $@" ! $TESTJAVA/bin/javac -d $TESTCLASSES $TESTSRC/$@.java || exit 2 $TESTJAVA/bin/java ${TESTVMOPTS} -classpath $TESTCLASSES $@ || exit 3 } # Test GetMaxFileDescriptorCount if we are running on Unix case `uname -s` in --- 28,50 ---- # @author Steve Bohne # # @run shell GetMaxFileDescriptorCount.sh # ! if [ "${TESTJAVA}" = "" ] ; then echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test." exit 1 fi + if [ "${COMPILEJAVA}" = "" ]; then + COMPILEJAVA="${TESTJAVA}" + fi runOne() { echo "runOne $@" ! $COMPILEJAVA/bin/javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d $TESTCLASSES \ ! $TESTSRC/$@.java || exit 2 $TESTJAVA/bin/java ${TESTVMOPTS} -classpath $TESTCLASSES $@ || exit 3 } # Test GetMaxFileDescriptorCount if we are running on Unix case `uname -s` in