< prev index next >

test/java/lang/StringCoding/CheckEncodings.sh

Print this page
rev 1539 : 6911129: These tests do not work with CYGWIN: java/lang
Reviewed-by: tbell, alanb
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>

@@ -29,11 +29,11 @@
 
 # set platform-dependent variables
 OS=`uname -s`
 case "$OS" in
   SunOS | Linux | Darwin | AIX ) ;;
-  Windows* )
+  Windows* | CYGWIN* )
     echo "Passed"; exit 0 ;;
   * ) echo "Unrecognized system!" ;  exit 1 ;;
 esac
 
 expectPass() {

@@ -47,11 +47,11 @@
 
 runTest() {
   echo "Testing:" ${1}
   set LC_ALL="${1}"; export LC_ALL
   locale
-  ${TESTJAVA}/bin/java -version 2>&1
+  ${TESTJAVA}/bin/java ${TESTVMOPTS} -version 2>&1
   expectPass $?
 }
 
 
 locale -a > machine_locales.txt
< prev index next >