test/java/awt/Toolkit/BadDisplayTest/BadDisplayTest.sh

Print this page

        

*** 1,6 **** ! # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. --- 1,6 ---- ! # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation.
*** 19,43 **** # or visit www.oracle.com if you need additional information or have any # questions. ${TESTJAVA}/bin/javac -cp ${TESTSRC} -d . ${TESTSRC}/BadDisplayTest.java - - DISPLAY= - export DISPLAY - OS=`uname -s` case "$OS" in ! SunOS ) ! ${TESTJAVA}/bin/java ${TESTVMOPTS} BadDisplayTest ! ;; ! Linux ) ! ${TESTJAVA}/bin/java ${TESTVMOPTS} BadDisplayTest ! ;; ! * ) ! echo "Unsupported System: ${OS}" ! exit 0; ! ;; esac ! exit $? --- 19,35 ---- # or visit www.oracle.com if you need additional information or have any # questions. ${TESTJAVA}/bin/javac -cp ${TESTSRC} -d . ${TESTSRC}/BadDisplayTest.java OS=`uname -s` case "$OS" in ! Windows* | CYGWIN* | Darwin) ! echo "Passed"; exit 0 ;; esac ! DISPLAY=SomeBadDisplay ! export DISPLAY ! ! ${TESTJAVA}/bin/java ${TESTVMOPTS} BadDisplayTest + exit $?