< prev index next >

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

Print this page
rev 14031 : 8160974: [TESTBUG] Mark more headful tests with @key headful.

This is a backport of fe58d505fffd from jdk9. 228/596 hunks apply without
modifications. 16 hunks required manual rework. The remainder were for files
not present in jdk8u.


   8 # under the terms of the GNU General Public License version 2 only, as
   9 # published by the Free Software Foundation.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 #
  27 #   @test       ShowExitTest.sh

  28 #   @bug        6513421
  29 #   @summary    Java process does not terminate on closing the Main Application Frame
  30 #
  31 #   @compile ShowExitTest.java
  32 #   @run shell/timeout=60 ShowExitTest.sh
  33 
  34 # NOTE: The following error message means that the regression test failed:
  35 #       "Execution failed: Program `sh' interrupted! (timed out?)"
  36 
  37 # Beginning of subroutines:
  38 status=1
  39 
  40 #Call this from anywhere to fail the test with an error message
  41 # usage: fail "reason why the test failed"
  42 fail()
  43  { echo "The test failed :-("
  44    echo "$*" 1>&2
  45    echo "exit status was $status"
  46    exit $status
  47  } #end of fail()




   8 # under the terms of the GNU General Public License version 2 only, as
   9 # published by the Free Software Foundation.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 #
  27 #   @test       ShowExitTest.sh
  28 #   @key        headful
  29 #   @bug        6513421
  30 #   @summary    Java process does not terminate on closing the Main Application Frame
  31 #
  32 #   @compile ShowExitTest.java
  33 #   @run shell/timeout=60 ShowExitTest.sh
  34 
  35 # NOTE: The following error message means that the regression test failed:
  36 #       "Execution failed: Program `sh' interrupted! (timed out?)"
  37 
  38 # Beginning of subroutines:
  39 status=1
  40 
  41 #Call this from anywhere to fail the test with an error message
  42 # usage: fail "reason why the test failed"
  43 fail()
  44  { echo "The test failed :-("
  45    echo "$*" 1>&2
  46    echo "exit status was $status"
  47    exit $status
  48  } #end of fail()


< prev index next >