diff --git a/test/compiler/6894807/Test6894807.sh b/test/compiler/6894807/Test6894807.sh index 2b11733dc9c8037ba66a6feb949113eb820fdda6..20fee43ea69846b3d64ff5bc242a49cb732e80a4 100644 --- a/test/compiler/6894807/Test6894807.sh +++ b/test/compiler/6894807/Test6894807.sh @@ -21,7 +21,7 @@ fi # set platform-dependent variables OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) NULL=/dev/null PS=":" FS="/" diff --git a/test/gc/6941923/test6941923.sh b/test/gc/6941923/test6941923.sh index 8e108b795675247d90aef27e78ca4999c5174b42..e66419635686bec75561109bbff6d51f0bc1d0de 100644 --- a/test/gc/6941923/test6941923.sh +++ b/test/gc/6941923/test6941923.sh @@ -9,7 +9,7 @@ ## skip on windows OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) NULL=/dev/null PS=":" FS="/" diff --git a/test/runtime/6626217/Test6626217.sh b/test/runtime/6626217/Test6626217.sh index 96217b5163ba711891b03b8a2564a0cbe83bfa7b..e7414983b9c6b43f7c5b3e139f12fb296ffb0754 100644 --- a/test/runtime/6626217/Test6626217.sh +++ b/test/runtime/6626217/Test6626217.sh @@ -49,7 +49,7 @@ fi # set platform-dependent variables OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) NULL=/dev/null PS=":" FS="/" diff --git a/test/runtime/6878713/Test6878713.sh b/test/runtime/6878713/Test6878713.sh index eb2064de233097fc52322849cc91816d92052f63..73d91fc0c32a2ab6dabf33eaa982aa637d49bd7c 100644 --- a/test/runtime/6878713/Test6878713.sh +++ b/test/runtime/6878713/Test6878713.sh @@ -28,7 +28,7 @@ fi # set platform-dependent variables OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) NULL=/dev/null PS=":" FS="/" diff --git a/test/runtime/6929067/Test6929067.sh b/test/runtime/6929067/Test6929067.sh index 3e624d04eb7c9eec6893423b0b1ea754a72896dd..c08aa6b8f0969c6f595d24f0ceaa75fdbaa18ea5 100644 --- a/test/runtime/6929067/Test6929067.sh +++ b/test/runtime/6929067/Test6929067.sh @@ -27,17 +27,10 @@ case "$OS" in PS=":" FS="/" ;; - SunOS | Windows_* | *BSD) - NULL=NUL - PS=";" - FS="\\" + * ) echo "Test passed; only valid for Linux" exit 0; ;; - * ) - echo "Unrecognized system!" - exit 1; - ;; esac # Choose arch: i386 or amd64 (test is Linux-specific) diff --git a/test/runtime/7051189/Xchecksig.sh b/test/runtime/7051189/Xchecksig.sh index 0bf3fe9f21c42357157f86bd2ea863f8067fcbaa..b4fbbd7d7c8ba08978eda32dfe66f3e756ef883e 100644 --- a/test/runtime/7051189/Xchecksig.sh +++ b/test/runtime/7051189/Xchecksig.sh @@ -43,7 +43,7 @@ fi OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) FS="/" ;; Windows_* ) diff --git a/test/runtime/7110720/Test7110720.sh b/test/runtime/7110720/Test7110720.sh index c90c054fe4b3d167281cbd8c2aac3099bff6e6f7..ef13888ee572f4ca0e32cccc8fcd8c713568118b 100644 --- a/test/runtime/7110720/Test7110720.sh +++ b/test/runtime/7110720/Test7110720.sh @@ -37,7 +37,7 @@ fi # set platform-dependent variables OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) FS="/" RM=/bin/rm CP=/bin/cp diff --git a/test/runtime/7158800/Test7158800.sh b/test/runtime/7158800/Test7158800.sh index 2a502346a0bb5c4e8c70b90fa7bbfd8b095aa35a..781922a3c5bd0a0333c5bea82461cc81460b0738 100644 --- a/test/runtime/7158800/Test7158800.sh +++ b/test/runtime/7158800/Test7158800.sh @@ -46,7 +46,7 @@ fi # set platform-dependent variables OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin ) NULL=/dev/null PS=":" FS="/" @@ -67,13 +67,13 @@ CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH THIS_DIR=`pwd` -${TESTJAVA}${FS}bin${FS}java -fullversion +${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -fullversion ${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}InternTest.java cp ${TESTSRC}${FS}badstrings.txt . -${TESTJAVA}${FS}bin${FS}java -XX:+PrintStringTableStatistics -XX:+TraceSafepointCleanupTime InternTest bad > test.out 2>&1 & +${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -XX:+PrintStringTableStatistics -XX:+TraceSafepointCleanupTime InternTest bad > test.out 2>&1 & C_PID=$! sleep 60 diff --git a/test/runtime/7158988/TestFieldMonitor.sh b/test/runtime/7158988/TestFieldMonitor.sh index c9268f862e37417461fa3e606b61d016d877f4b1..cf7fcf39319ac1a8de960ba433368d3615a6756e 100644 --- a/test/runtime/7158988/TestFieldMonitor.sh +++ b/test/runtime/7158988/TestFieldMonitor.sh @@ -21,7 +21,7 @@ fi # set platform-dependent variables OS=`uname -s` case "$OS" in - SunOS | Linux ) + SunOS | Linux | Darwin) NULL=/dev/null PS=":" FS="/" @@ -52,30 +52,7 @@ ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -fullversion ${TESTJAVA}${FS}bin${FS}javac -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar *.java -${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar FieldMonitor > test.out 2>&1 & - -P_PID=$! - -sleep 60 -STATUS=0 - -case "$OS" in - SunOS | Linux ) - ps -ef | grep $P_PID | grep -v grep > ${NULL} - if [ $? = 0 ]; then - kill -9 $P_PID - STATUS=1 - fi - ;; - * ) - ps | grep -i "FieldMonitor" | grep -v grep > ${NULL} - if [ $? = 0 ]; then - C_PID=`ps | grep -i "FieldMonitor" | awk '{print $1}'` - kill -s 9 $C_PID - STATUS=1 - fi - ;; -esac +${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar FieldMonitor > test.out grep "A fatal error has been detected" test.out > ${NULL} if [ $? = 0 ]; then