< prev index next >

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

Print this page
rev 59383 : [mq]: final
   1 #!/bin/ksh -p
   2 #
   3 # Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #


  61    echo "exit status was $status"
  62    exit $status
  63  } #end of fail()
  64 
  65 #Call this from anywhere to pass the test with a message
  66 # usage: pass "reason why the test passed if applicable"
  67 pass()
  68  { echo "The test passed!!!"
  69    echo "$*" 1>&2
  70    exit 0
  71  } #end of pass()
  72 
  73 # end of subroutines
  74 
  75 
  76 # The beginning of the script proper
  77 
  78 # Checking for proper OS
  79 OS=`uname -s`
  80 case "$OS" in
  81    SunOS )
  82       VAR="One value for Sun"
  83       DEFAULT_JDK=/
  84       FILESEP="/"
  85       PATHSEP=":"
  86       TMP="/tmp"
  87       ;;
  88 
  89    Linux )
  90       VAR="A different value for Linux"
  91       DEFAULT_JDK=/
  92       FILESEP="/"
  93       PATHSEP=":"
  94       TMP="/tmp"
  95       ;;
  96 
  97    AIX )
  98       VAR="A different value for AIX"
  99       DEFAULT_JDK=/
 100       FILESEP="/"
 101       PATHSEP=":"
 102       TMP="/tmp"
 103       ;;
 104 
 105    Darwin )
 106       VAR="A different value for MacOSX"
 107       DEFAULT_JDK=/usr
 108       FILESEP="/"


   1 #!/bin/ksh -p
   2 #
   3 # Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #


  61    echo "exit status was $status"
  62    exit $status
  63  } #end of fail()
  64 
  65 #Call this from anywhere to pass the test with a message
  66 # usage: pass "reason why the test passed if applicable"
  67 pass()
  68  { echo "The test passed!!!"
  69    echo "$*" 1>&2
  70    exit 0
  71  } #end of pass()
  72 
  73 # end of subroutines
  74 
  75 
  76 # The beginning of the script proper
  77 
  78 # Checking for proper OS
  79 OS=`uname -s`
  80 case "$OS" in








  81    Linux )
  82       VAR="A different value for Linux"
  83       DEFAULT_JDK=/
  84       FILESEP="/"
  85       PATHSEP=":"
  86       TMP="/tmp"
  87       ;;
  88 
  89    AIX )
  90       VAR="A different value for AIX"
  91       DEFAULT_JDK=/
  92       FILESEP="/"
  93       PATHSEP=":"
  94       TMP="/tmp"
  95       ;;
  96 
  97    Darwin )
  98       VAR="A different value for MacOSX"
  99       DEFAULT_JDK=/usr
 100       FILESEP="/"


< prev index next >