< prev index next >

test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh

Print this page
rev 17561 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.


   7 # published by the Free Software Foundation.
   8 #
   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 #!/bin/ksh -p
  25 #
  26 #   @test    IOExceptionIfEncodedURLTest.sh

  27 #   @bug     6193279 6619458 8137087
  28 #   @summary REGRESSION: AppletViewer throws IOException when path is encoded URL
  29 #   @author  Dmitry Cherepanov: area=appletviewer
  30 #   @modules java.base/sun.net.www
  31 #            java.desktop
  32 #   @run compile IOExceptionIfEncodedURLTest.java
  33 #   @run main IOExceptionIfEncodedURLTest
  34 #   @run shell IOExceptionIfEncodedURLTest.sh
  35 
  36 # Beginning of subroutines:
  37 status=1
  38 
  39 #Call this from anywhere to fail the test with an error message
  40 # usage: fail "reason why the test failed"
  41 fail()
  42  { echo "The test failed :-("
  43    echo "$*" 1>&2
  44    echo "exit status was $status"
  45    exit $status
  46  } #end of fail()




   7 # published by the Free Software Foundation.
   8 #
   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 #!/bin/ksh -p
  25 #
  26 #   @test    IOExceptionIfEncodedURLTest.sh
  27 #   @key     headful
  28 #   @bug     6193279 6619458 8137087
  29 #   @summary REGRESSION: AppletViewer throws IOException when path is encoded URL
  30 #   @author  Dmitry Cherepanov: area=appletviewer
  31 #   @modules java.base/sun.net.www
  32 #            java.desktop
  33 #   @run compile IOExceptionIfEncodedURLTest.java
  34 #   @run main IOExceptionIfEncodedURLTest
  35 #   @run shell IOExceptionIfEncodedURLTest.sh
  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()


< prev index next >