1 #
2 # Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
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
28 # @summary REGRESSION: AppletViewer throws IOException when path is encoded URL
29 # @author Dmitry Cherepanov: area=appletviewer
30 # @run compile IOExceptionIfEncodedURLTest.java
31 # @run main IOExceptionIfEncodedURLTest
32 # @run shell IOExceptionIfEncodedURLTest.sh
33
34 # Beginning of subroutines:
35 status=1
36
37 #Call this from anywhere to fail the test with an error message
38 # usage: fail "reason why the test failed"
39 fail()
40 { echo "The test failed :-("
41 echo "$*" 1>&2
42 echo "exit status was $status"
43 exit $status
44 } #end of fail()
45
46 #Call this from anywhere to pass the test with a message
47 # usage: pass "reason why the test passed if applicable"
48 pass()
49 { echo "The test passed!!!"
|
1 #
2 # Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
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
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()
47
48 #Call this from anywhere to pass the test with a message
49 # usage: pass "reason why the test passed if applicable"
50 pass()
51 { echo "The test passed!!!"
|