test/sun/net/InetAddress/nameservice/dns/cname.sh

Print this page

        

*** 40,60 **** CLASSPATH=${TESTCLASSES} export CLASSPATH JAVA="${TESTJAVA}/bin/java" ! sh -xc "$JAVA ${TESTVMOPTS} CanonicalName $HOST" 2>&1 if [ $? != 0 ]; then echo "DNS not configured or host doesn't resolve to CNAME record" exit 0 fi failures=0 go() { echo '' ! sh -xc "$JAVA ${TESTVMOPTS} $1 Lookup $2" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi } # Tests - with & without security manager --- 40,60 ---- CLASSPATH=${TESTCLASSES} export CLASSPATH JAVA="${TESTJAVA}/bin/java" ! sh -xc "$JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} CanonicalName $HOST" 2>&1 if [ $? != 0 ]; then echo "DNS not configured or host doesn't resolve to CNAME record" exit 0 fi failures=0 go() { echo '' ! sh -xc "$JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} $1 Lookup $2" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi } # Tests - with & without security manager