7073626: RmiBootstrapTest.sh and RmiSslBootstrapTest.sh fail under Cygwin

Detect and handle cygwin correctly

Reviewed-by: alanb, sspitsyn
This commit is contained in:
Staffan Larsen 2012-02-24 20:02:50 +01:00
parent cecb628970
commit 399194bb7a
2 changed files with 8 additions and 4 deletions

View File

@ -144,9 +144,6 @@ javax/management/loading/LibraryLoader/LibraryLoaderTest.java windows-all
# 7144846
javax/management/remote/mandatory/connection/ReconnectTest.java generic-all
# 7073626
sun/management/jmxremote/bootstrap/RmiBootstrapTest.sh windows-all
sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh windows-all
############################################################################

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,13 @@
OS=`uname -s`
UMASK=`umask`
if [[ $OS == CYGWIN_NT* ]] ; then
OS="Windows_NT"
if [ -z "$SystemRoot" ] ; then
SystemRoot=$SYSTEMROOT
fi
fi
case $OS in
SunOS | Linux)
PATHSEP=":"