test/com/sun/tools/attach/PermissionTests.sh

Print this page

        

*** 46,64 **** startApplication # pid = process-id, port = shutdown port echo "Deny test" # deny ! $JAVA -classpath ${TESTCLASSES}${PS}${TESTJAVA}/lib/tools.jar \ -Djava.security.manager \ -Djava.security.policy=${TESTSRC}/java.policy.deny \ PermissionTest $pid true 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi # allow echo "Allow test" ! $JAVA -classpath ${TESTCLASSES}${PS}${TESTJAVA}/lib/tools.jar \ -Djava.security.manager \ -Djava.security.policy=${TESTSRC}/java.policy.allow \ PermissionTest $pid false 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi --- 46,64 ---- startApplication # pid = process-id, port = shutdown port echo "Deny test" # deny ! $JAVA -classpath "${TESTCLASSES}${PS}${TESTJAVA}/lib/tools.jar" \ -Djava.security.manager \ -Djava.security.policy=${TESTSRC}/java.policy.deny \ PermissionTest $pid true 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi # allow echo "Allow test" ! $JAVA -classpath "${TESTCLASSES}${PS}${TESTJAVA}/lib/tools.jar" \ -Djava.security.manager \ -Djava.security.policy=${TESTSRC}/java.policy.allow \ PermissionTest $pid false 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi