comparison test/runtime/7020373/Test7020373.sh @ 6074:037973617842

7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG. Reviewed-by: kvn
author kevinw
date Fri, 11 May 2012 17:24:32 +0100
parents bca686989d4b
children 149c36689fcb
comparison
equal deleted inserted replaced
6073:78d2ae5ab35b 6074:037973617842
25 then 25 then
26 echo "TESTCLASSES not set. Test cannot execute. Failed." 26 echo "TESTCLASSES not set. Test cannot execute. Failed."
27 exit 1 27 exit 1
28 fi 28 fi
29 29
30 BIT_FLAG=""
31
32 # set platform-dependent variables 30 # set platform-dependent variables
33 OS=`uname -s` 31 OS=`uname -s`
34 case "$OS" in 32 case "$OS" in
35 SunOS | Linux ) 33 SunOS | Linux )
36 NULL=/dev/null 34 NULL=/dev/null
37 PS=":" 35 PS=":"
38 FS="/" 36 FS="/"
39 ## for solaris, linux it's HOME
40 FILE_LOCATION=$HOME
41 if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" ]
42 then
43 BIT_FLAG=`cat ${FILE_LOCATION}${FS}JDK64BIT | grep -v '^#'`
44 fi
45 ;; 37 ;;
46 Windows_* ) 38 Windows_* )
47 NULL=NUL 39 NULL=NUL
48 PS=";" 40 PS=";"
49 FS="\\" 41 FS="\\"
57 JEMMYPATH=${CPAPPEND} 49 JEMMYPATH=${CPAPPEND}
58 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH 50 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH
59 51
60 THIS_DIR=`pwd` 52 THIS_DIR=`pwd`
61 53
62 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version 54 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version
63 55
64 ${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar 56 ${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar
65 57
66 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} OOMCrashClass4000_1 > test.out 2>&1 58 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1
67 59
68 cat test.out 60 cat test.out
69 61
70 egrep "SIGSEGV|An unexpected error has been detected" test.out 62 egrep "SIGSEGV|An unexpected error has been detected" test.out
71 63