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 # @test
27 # @summary Verify that sun.nio.cs.map property interpreted in ja multibyte locales
28 # @bug 4879123
29 # @build SJISPropTest
30 #
31 # @run shell/timeout=300 CheckSJISMappingProp.sh
32
33 # set platform-dependent variables
34
35 OS=`uname -s`
36 case "$OS" in
37 SunOS | Linux | Darwin ) ;;
38 # Skip locale test for Windows
39 Windows* | CYGWIN* )
40 echo "Passed"; exit 0 ;;
41 * ) echo "Unrecognized system!" ; exit 1 ;;
42 esac
43
44 expectPass() {
45 if [ $1 -eq 0 ]
46 then echo "--- passed as expected"
47 else
48 echo "--- failed"
49 exit $1
50 fi
51 }
52
53
54 JAVA="${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${TESTCLASSES}"
55 runTest() {
56 echo "Testing:" ${1}
57 LC_ALL="$1" ; export LC_ALL
|
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 # @test
27 # @summary Verify that sun.nio.cs.map property interpreted in ja multibyte locales
28 # @bug 4879123
29 # @build SJISPropTest
30 #
31 # @run shell/timeout=300 CheckSJISMappingProp.sh
32
33 # set platform-dependent variables
34
35 OS=`uname -s`
36 case "$OS" in
37 SunOS | Linux | Darwin | AIX ) ;;
38 # Skip locale test for Windows
39 Windows* | CYGWIN* )
40 echo "Passed"; exit 0 ;;
41 * ) echo "Unrecognized system!" ; exit 1 ;;
42 esac
43
44 expectPass() {
45 if [ $1 -eq 0 ]
46 then echo "--- passed as expected"
47 else
48 echo "--- failed"
49 exit $1
50 fi
51 }
52
53
54 JAVA="${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${TESTCLASSES}"
55 runTest() {
56 echo "Testing:" ${1}
57 LC_ALL="$1" ; export LC_ALL
|