changeset 2577:d6f8ffc3c54a

6954517: Testcase failure tools/launcher/UnicodeTest.sh Reviewed-by: ksrini
author ohair
date Wed, 07 Jul 2010 10:17:36 -0700
parents 425960cef714
children f13e94562d84 f56ef0d441b0
files test/tools/launcher/UnicodeTest.sh
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/launcher/UnicodeTest.sh	Tue Jul 06 18:58:30 2010 -0700
+++ b/test/tools/launcher/UnicodeTest.sh	Wed Jul 07 10:17:36 2010 -0700
@@ -54,7 +54,11 @@
 
 echo "creating test source files"
 "$JAVAC" -d . "${TESTSRC}"/UnicodeTest.java
-CLASS_NAME=`"$JAVA" UnicodeTest | sed -e 's@\\r@@g' `
+if [ "`uname -s | grep CYGWIN`" != "" ] ; then
+  CLASS_NAME=`"$JAVA" UnicodeTest | sed -e 's@\\r@@g' `
+else
+  CLASS_NAME=`"$JAVA" UnicodeTest`
+fi
 
 if [ "$CLASS_NAME" = "" ]
 then