test/java/awt/Toolkit/AutoShutdown/ShowExitTest/ShowExitTest.sh

Print this page

        

@@ -141,11 +141,11 @@
    echo "Just a reminder: cd to the dir containing this test when running it"
    # then compile all .java files (if there are any) into .class files
    if [ -a *.java ] ;
       then echo "Reminder, this test should be in its own directory with all"
       echo "supporting files it needs in the directory with it."
-      ${TESTJAVA}/bin/javac ./*.java ;
+      ${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} ${TESTJAVACOPTS} ./*.java ;
    fi
    # else in harness so copy all the class files from where jtreg put them
    # over to the scratch directory this test is running in.
    else cp ${TESTCLASSES}/*.class . ;
 fi

@@ -165,11 +165,11 @@
 # this file.  If converting a standalone test to run with the harness,
 # as long as all files are in the same directory and it returns 0 for
 # pass, you should be able to cut and paste it into here and it will
 # run with the test harness.
 
-${TESTJAVA}/bin/java ShowExitTest
+${TESTJAVA}/bin/java ${TESTVMOPTS} ${TESTJAVAOPTS} ShowExitTest
 
 ###############  END YOUR TEST CODE !!!!! ############
 #Be sure the last command executed above this line returns 0 for success,
 # something non-zero for failure.
 status=$?