< prev index next >

test/java/lang/System/finalization/FinExit.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>

@@ -22,11 +22,13 @@
 # or visit www.oracle.com if you need additional information or have any
 # questions.
 #
 
 #
-x=`$TESTJAVA/bin/java -cp $TESTCLASSES FinExit`
+
+# We only want the first character, Windows might add CRLF
+x=`$TESTJAVA/bin/java ${TESTVMOPTS} -cp "$TESTCLASSES" FinExit | cut -c1`
 echo $x
 if [ "x$x" != "x1" ]; then
   echo On-exit finalizer invoked twice
   exit 1
 else
< prev index next >