test/java/lang/System/finalization/FinExit.sh

Print this page

        

@@ -22,11 +22,13 @@
 # CA 95054 USA or visit www.sun.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 -cp "$TESTCLASSES" FinExit | cut -c1`
 echo $x
 if [ "x$x" != "x1" ]; then
   echo On-exit finalizer invoked twice
   exit 1
 else