Sat, 02 Feb 2013 20:13:27 +0100
8000363: runtime/7158988/FieldMonitor.java fails with exception
Summary: Removed unnecessary shell script in the test.
Reviewed-by: coleenp, sla
test/runtime/7158988/FieldMonitor.java | file | annotate | diff | comparison | revisions | |
test/runtime/7158988/TestFieldMonitor.sh | file | annotate | diff | comparison | revisions |
1.1 --- a/test/runtime/7158988/FieldMonitor.java Sat Feb 02 16:34:10 2013 +0100 1.2 +++ b/test/runtime/7158988/FieldMonitor.java Sat Feb 02 20:13:27 2013 +0100 1.3 @@ -24,8 +24,10 @@ 1.4 /* 1.5 * @test FieldMonitor.java 1.6 * @bug 7158988 1.7 + * @key regression 1.8 * @summary verify jvm does not crash while debugging 1.9 - * @run shell TestFieldMonitor.sh 1.10 + * @run compile TestPostFieldModification.java 1.11 + * @run main/othervm FieldMonitor 1.12 * @author axel.siebenborn@sap.com 1.13 */ 1.14 import java.io.BufferedReader;
2.1 --- a/test/runtime/7158988/TestFieldMonitor.sh Sat Feb 02 16:34:10 2013 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,75 +0,0 @@ 2.4 -#!/bin/sh 2.5 - 2.6 -if [ "${TESTSRC}" = "" ] 2.7 -then TESTSRC=. 2.8 -fi 2.9 - 2.10 -if [ "${TESTJAVA}" = "" ] 2.11 -then 2.12 - PARENT=`dirname \`which java\`` 2.13 - TESTJAVA=`dirname ${PARENT}` 2.14 - echo "TESTJAVA not set, selecting " ${TESTJAVA} 2.15 - echo "If this is incorrect, try setting the variable manually." 2.16 -fi 2.17 - 2.18 -if [ "${TESTCLASSES}" = "" ] 2.19 -then 2.20 - echo "TESTCLASSES not set. Test cannot execute. Failed." 2.21 - exit 1 2.22 -fi 2.23 - 2.24 -# set platform-dependent variables 2.25 -OS=`uname -s` 2.26 -case "$OS" in 2.27 - SunOS | Linux | Darwin) 2.28 - NULL=/dev/null 2.29 - PS=":" 2.30 - FS="/" 2.31 - ;; 2.32 - Windows_95 | Windows_98 | Windows_ME ) 2.33 - NULL=NUL 2.34 - PS=";" 2.35 - FS="\\" 2.36 - echo "Test skipped, only for WinNT" 2.37 - exit 0 2.38 - ;; 2.39 - Windows_NT ) 2.40 - NULL=NUL 2.41 - PS=";" 2.42 - FS="\\" 2.43 - ;; 2.44 - CYGWIN_NT* ) 2.45 - NULL=/dev/null 2.46 - PS=";" 2.47 - FS="/" 2.48 - ;; 2.49 - CYGWIN_* ) 2.50 - NULL=/dev/null 2.51 - PS=";" 2.52 - FS="/" 2.53 - echo "Test skipped, only for WinNT" 2.54 - exit 0 2.55 - ;; 2.56 - * ) 2.57 - echo "Unrecognized system!" 2.58 - exit 1; 2.59 - ;; 2.60 -esac 2.61 - 2.62 -#CLASSPATH=.${PS}${TESTCLASSES} ; export CLASSPATH 2.63 - 2.64 -cp ${TESTSRC}${FS}*.java . 2.65 - 2.66 -${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -fullversion 2.67 - 2.68 -${TESTJAVA}${FS}bin${FS}javac -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar *.java 2.69 - 2.70 -${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar FieldMonitor > test.out 2.71 - 2.72 -grep "A fatal error has been detected" test.out > ${NULL} 2.73 -if [ $? = 0 ]; then 2.74 - cat test.out 2.75 - STATUS=1 2.76 -fi 2.77 - 2.78 -exit $STATUS