--- old/test/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.sh 2014-01-26 11:37:41.340797043 +0800 +++ new/test/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.sh 2014-01-26 11:37:41.192797045 +0800 @@ -104,18 +104,18 @@ go() { echo '' - sh -xc "$JAVA ${TESTVMOPTS} $1 $2 $3 $4 $5 $6 $7 $8" 2>&1 + sh -xc "$JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} $1 $2 $3 $4 $5 $6 $7 $8" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi } # Test 1 - password file is secure - VM should start chmod 700 ${PASSWD} -sh -xc "$JAVA ${TESTVMOPTS} $mp $pp Null" 2>&1 +sh -xc "$JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} $mp $pp Null" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi # Test 2 - password file is not secure - VM should fail to start chmod o+rx ${PASSWD} -sh -xc "$JAVA ${TESTVMOPTS} $mp $pp Null" 2>&1 +sh -xc "$JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} $mp $pp Null" 2>&1 if [ $? = 0 ]; then failures=`expr $failures + 1`; fi # Reset the file permissions on the generated password file