test/java/io/Serializable/resolveClass/deserializeButton/run.sh

Print this page
rev 5550 : 7162111: TEST_BUG: change tests run in headless mode [macosx] (open)
Summary: In problem tests detection of AWT headless mode was introduced or AWT dependence was removed.
Reviewed-by: alanb


   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # @test
  25 # @bug 4413434
  26 # @summary Verify that class loaded outside of application class loader is
  27 #          correctly resolved during deserialization when read in by custom
  28 #          readObject() method of a bootstrap class (in this case,
  29 #          java.awt.Button).
  30 
  31 if [ "${TESTJAVA}" = "" ]
  32 then
  33         echo "TESTJAVA not set.  Test cannot execute.  Failed."
  34 exit 1
  35 fi
  36 
  37 if [ "${TESTSRC}" = "" ]
  38 then
  39         TESTSRC="."
  40 fi
  41 
  42 set -ex
  43 
  44 rm -f *.class *.jar
  45 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Foo.java
  46 ${TESTJAVA}/bin/jar cf cb.jar *.class
  47 rm -f *.class
  48 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Test.java
  49 ${TESTJAVA}/bin/java Test


   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # @test
  25 # @bug 4413434
  26 # @summary Verify that class loaded outside of application class loader is
  27 #          correctly resolved during deserialization when read in by custom
  28 #          readObject() method of a bootstrap class (in this case,
  29 #          java.util.Vector).
  30 
  31 if [ "${TESTJAVA}" = "" ]
  32 then
  33         echo "TESTJAVA not set.  Test cannot execute.  Failed."
  34 exit 1
  35 fi
  36 
  37 if [ "${TESTSRC}" = "" ]
  38 then
  39         TESTSRC="."
  40 fi
  41 
  42 set -ex
  43 
  44 rm -f *.class *.jar
  45 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Foo.java
  46 ${TESTJAVA}/bin/jar cf cb.jar *.class
  47 rm -f *.class
  48 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Test.java
  49 ${TESTJAVA}/bin/java Test