changeset 2076:07fdd926aaea

6911129: These tests do not work with CYGWIN: java/lang Reviewed-by: tbell, alanb
author ohair
date Mon, 04 Jan 2010 15:49:34 -0800
parents f86db0646421
children 1d6f315e42f1
files test/java/beans/Introspector/Test5102804.java test/java/lang/ClassLoader/deadlock/TestOneWayDelegate.sh test/java/lang/StringCoding/CheckEncodings.sh test/java/lang/System/finalization/FinExit.sh test/java/lang/annotation/loaderLeak/LoaderLeak.sh test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh
diffstat 6 files changed, 18 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/beans/Introspector/Test5102804.java	Mon Jan 04 15:45:30 2010 -0800
+++ b/test/java/beans/Introspector/Test5102804.java	Mon Jan 04 15:49:34 2010 -0800
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 5102804
+ * @ignore This test is not predictable with regards to GC
  * @summary Tests memory leak
  * @author Sergey Malenkov
  */
--- a/test/java/lang/ClassLoader/deadlock/TestOneWayDelegate.sh	Mon Jan 04 15:45:30 2010 -0800
+++ b/test/java/lang/ClassLoader/deadlock/TestOneWayDelegate.sh	Mon Jan 04 15:49:34 2010 -0800
@@ -55,7 +55,7 @@
   Linux )
     FS="/"
     ;;
-  Windows* )
+  Windows* | CYGWIN* )
     FS="\\"
     ;;
 esac
--- a/test/java/lang/StringCoding/CheckEncodings.sh	Mon Jan 04 15:45:30 2010 -0800
+++ b/test/java/lang/StringCoding/CheckEncodings.sh	Mon Jan 04 15:49:34 2010 -0800
@@ -31,7 +31,7 @@
 OS=`uname -s`
 case "$OS" in
   SunOS | Linux ) ;;
-  Windows* )
+  Windows* | CYGWIN* )
     echo "Passed"; exit 0 ;;
   * ) echo "Unrecognized system!" ;  exit 1 ;;
 esac
--- a/test/java/lang/System/finalization/FinExit.sh	Mon Jan 04 15:45:30 2010 -0800
+++ b/test/java/lang/System/finalization/FinExit.sh	Mon Jan 04 15:49:34 2010 -0800
@@ -24,7 +24,9 @@
 #
 
 #
-x=`$TESTJAVA/bin/java -cp $TESTCLASSES FinExit`
+
+# We only want the first character, Windows might add CRLF
+x=`$TESTJAVA/bin/java -cp "$TESTCLASSES" FinExit | cut -c1`
 echo $x
 if [ "x$x" != "x1" ]; then
   echo On-exit finalizer invoked twice
--- a/test/java/lang/annotation/loaderLeak/LoaderLeak.sh	Mon Jan 04 15:45:30 2010 -0800
+++ b/test/java/lang/annotation/loaderLeak/LoaderLeak.sh	Mon Jan 04 15:49:34 2010 -0800
@@ -49,6 +49,11 @@
     PS=":"
     FS="/"
     ;;
+  CYGWIN* )
+    NULL=/dev/null
+    PS=";"
+    FS="/"
+    ;;
   Windows* )
     NULL=NUL
     PS=";"
--- a/test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh	Mon Jan 04 15:45:30 2010 -0800
+++ b/test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh	Mon Jan 04 15:49:34 2010 -0800
@@ -43,11 +43,17 @@
     PS=":"
     FS="/"
     ;;
-  Windows* | CYGWIN*)
+  Windows*)
     PS=";"
     OS="Windows"
     FS="\\"
     ;;
+  CYGWIN*)
+    PS=";"
+    OS="Windows"
+    FS="\\"
+    isCygwin=true
+    ;;
   * )
     echo "Unrecognized system!"
     exit 1;