test/javax/imageio/stream/StreamCloserLeak/run_test.sh

Print this page




  75 
  76 # Checking for proper OS
  77 OS=`uname -s`
  78 case "$OS" in
  79    SunOS )
  80       VAR="One value for Sun"
  81       DEFAULT_JDK=/usr/local/java/jdk1.2/solaris
  82       FILESEP="/"
  83       PATHSEP=":"
  84       TMP="/tmp"
  85       ;;
  86 
  87    Linux )
  88       VAR="A different value for Linux"
  89       DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
  90       FILESEP="/"
  91       PATHSEP=":"
  92       TMP="/tmp"
  93       ;;
  94 
  95    Windows_95 | Windows_98 | Windows_NT | Windows_ME )
  96       VAR="A different value for Win32"
  97       DEFAULT_JDK=/usr/local/java/jdk1.2/win32
  98       FILESEP="\\"
  99       PATHSEP=";"
 100       TMP=`cd "${SystemRoot}/Temp"; echo ${PWD}`
 101       ;;
 102 
 103    # catch all other OSs
 104    * )
 105       echo "Unrecognized system!  $OS"
 106       fail "Unrecognized system!  $OS"
 107       ;;
 108 esac
 109 
 110 # Want this test to run standalone as well as in the harness, so do the
 111 #  following to copy the test's directory into the harness's scratch directory
 112 #  and set all appropriate variables:
 113 
 114 if [ -z "${TESTJAVA}" ] ; then
 115    # TESTJAVA is not set, so the test is running stand-alone.




  75 
  76 # Checking for proper OS
  77 OS=`uname -s`
  78 case "$OS" in
  79    SunOS )
  80       VAR="One value for Sun"
  81       DEFAULT_JDK=/usr/local/java/jdk1.2/solaris
  82       FILESEP="/"
  83       PATHSEP=":"
  84       TMP="/tmp"
  85       ;;
  86 
  87    Linux )
  88       VAR="A different value for Linux"
  89       DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
  90       FILESEP="/"
  91       PATHSEP=":"
  92       TMP="/tmp"
  93       ;;
  94 
  95    Windows_95 | Windows_98 | Windows_NT | Windows_ME | CYGWIN* )
  96       VAR="A different value for Win32"
  97       DEFAULT_JDK=/usr/local/java/jdk1.2/win32
  98       FILESEP="\\"
  99       PATHSEP=";"
 100       TMP=`cd "${SystemRoot}/Temp"; echo ${PWD}`
 101       ;;
 102 
 103    # catch all other OSs
 104    * )
 105       echo "Unrecognized system!  $OS"
 106       fail "Unrecognized system!  $OS"
 107       ;;
 108 esac
 109 
 110 # Want this test to run standalone as well as in the harness, so do the
 111 #  following to copy the test's directory into the harness's scratch directory
 112 #  and set all appropriate variables:
 113 
 114 if [ -z "${TESTJAVA}" ] ; then
 115    # TESTJAVA is not set, so the test is running stand-alone.