< prev index next >

test/jdk/javax/imageio/stream/StreamCloserLeak/run_test.sh

Print this page


   1 #!/bin/ksh -p
   2 #
   3 # Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 #
  26 #   @test
  27 #   @bug        6788096

  28 #   @summary    Test simulates the case of multiple applets executed in
  29 #               the same VM and verifies that ImageIO shutdown hook
  30 #               StreamCloser does not cause a leak of classloaders.
  31 #
  32 #   @modules java.desktop/sun.awt
  33 #   @build      test.Main
  34 #   @build      testapp.Main
  35 #   @run shell  run_test.sh
  36 
  37 # There are several resources which need to be present before many
  38 #  shell scripts can run.  Following are examples of how to check for
  39 #  many common ones.
  40 #
  41 # Note that the shell used is the Korn Shell, KSH
  42 #
  43 # Also note, it is recommended that make files NOT be used.  Rather,
  44 #  put the individual commands directly into this file.  That way,
  45 #  it is possible to use command line arguments and other shell tech-
  46 #  niques to find the compiler, etc on different systems.  For example,
  47 #  a different path could be used depending on whether this were a


   1 #!/bin/ksh -p
   2 #
   3 # Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 #
  26 #   @test
  27 #   @bug        6788096
  28 #   @key        intermittent
  29 #   @summary    Test simulates the case of multiple applets executed in
  30 #               the same VM and verifies that ImageIO shutdown hook
  31 #               StreamCloser does not cause a leak of classloaders.
  32 #
  33 #   @modules java.desktop/sun.awt
  34 #   @build      test.Main
  35 #   @build      testapp.Main
  36 #   @run shell  run_test.sh
  37 
  38 # There are several resources which need to be present before many
  39 #  shell scripts can run.  Following are examples of how to check for
  40 #  many common ones.
  41 #
  42 # Note that the shell used is the Korn Shell, KSH
  43 #
  44 # Also note, it is recommended that make files NOT be used.  Rather,
  45 #  put the individual commands directly into this file.  That way,
  46 #  it is possible to use command line arguments and other shell tech-
  47 #  niques to find the compiler, etc on different systems.  For example,
  48 #  a different path could be used depending on whether this were a


< prev index next >