test/sun/rmi/rmic/oldjavacRemoved/sunToolsJavacMain.sh

Print this page




  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # NOTE: This test has been at least temporarily disabled because of
  25 # the fix for 4926127.
  26 
  27 # @bug 4633413 4900663
  28 # @summary It should not be possible to execute the oldjavac
  29 # compiler implementation by invoking sun.tools.javac.Main.
  30 # @author Peter Jones
  31 
  32 if [ "${TESTJAVA}" = "" ]
  33 then
  34     echo "TESTJAVA not set.  Test cannot execute.  Failed."
  35     exit 1
  36 fi
  37 
  38 set -x
  39 
  40 ${TESTJAVA}/bin/java ${TESTVMOPTS} -classpath ${TESTJAVA}/lib/tools.jar sun.tools.javac.Main -d ${TESTCLASSES:-.} ${TESTSRC:-.}/Foo.java
  41 
  42 result=$?
  43 if [ $result -eq 0 ]
  44 then
  45     echo "TEST FAILED: sun.tools.javac.Main invocation succeeded"
  46     exit 1
  47 fi
  48 echo "TEST PASSED: sun.tools.javac.Main invocation failed"
  49 exit 0


  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # NOTE: This test has been at least temporarily disabled because of
  25 # the fix for 4926127.
  26 
  27 # @bug 4633413 4900663
  28 # @summary It should not be possible to execute the oldjavac
  29 # compiler implementation by invoking sun.tools.javac.Main.
  30 # @author Peter Jones
  31 
  32 if [ "${TESTJAVA}" = "" ]
  33 then
  34     echo "TESTJAVA not set.  Test cannot execute.  Failed."
  35     exit 1
  36 fi
  37 
  38 set -x
  39 
  40 ${TESTJAVA}/bin/java ${TESTVMOPTS} ${TESTJAVAOPTS} -classpath ${TESTJAVA}/lib/tools.jar sun.tools.javac.Main -d ${TESTCLASSES:-.} ${TESTSRC:-.}/Foo.java
  41 
  42 result=$?
  43 if [ $result -eq 0 ]
  44 then
  45     echo "TEST FAILED: sun.tools.javac.Main invocation succeeded"
  46     exit 1
  47 fi
  48 echo "TEST PASSED: sun.tools.javac.Main invocation failed"
  49 exit 0