jdk/test/sun/net/InetAddress/nameservice/dns/cname.sh
changeset 14786 a9f61e0cbe61
parent 9267 bbad6ad93743
child 36967 d041d2e80712
equal deleted inserted replaced
14785:164b4548e3ba 14786:a9f61e0cbe61
    40 
    40 
    41 CLASSPATH=${TESTCLASSES}
    41 CLASSPATH=${TESTCLASSES}
    42 export CLASSPATH
    42 export CLASSPATH
    43 JAVA="${TESTJAVA}/bin/java"
    43 JAVA="${TESTJAVA}/bin/java"
    44 
    44 
    45 sh -xc "$JAVA CanonicalName $HOST" 2>&1
    45 sh -xc "$JAVA ${TESTVMOPTS} CanonicalName $HOST" 2>&1
    46 if [ $? != 0 ]; then
    46 if [ $? != 0 ]; then
    47     echo "DNS not configured or host doesn't resolve to CNAME record"
    47     echo "DNS not configured or host doesn't resolve to CNAME record"
    48     exit 0
    48     exit 0
    49 fi
    49 fi
    50 
    50 
    51 failures=0
    51 failures=0
    52 
    52 
    53 go() {
    53 go() {
    54     echo ''
    54     echo ''
    55     sh -xc "$JAVA $1 Lookup $2" 2>&1
    55     sh -xc "$JAVA ${TESTVMOPTS} $1 Lookup $2" 2>&1
    56     if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
    56     if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
    57 }
    57 }
    58 
    58 
    59 # Tests - with & without security manager
    59 # Tests - with & without security manager
    60 
    60