agent/test/libproc/libproctest64.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6879063 Sdiff agent/test/libproc

agent/test/libproc/libproctest64.sh

Print this page




  41 if [ "x$SA_JAVA" = "x" ]; then
  42    SA_JAVA=java
  43 fi
  44 
  45 STARTDIR=`dirname $0`
  46 
  47 # create java process with test case
  48 tmp=/tmp/libproctest
  49 rm -f $tmp
  50 $SA_JAVA -d64 -classpath $STARTDIR LibprocTest > $tmp &
  51 pid=$!
  52 while [ ! -s $tmp ] ; do
  53   # Kludge alert!
  54   sleep 2
  55 done
  56 
  57 # dump core
  58 gcore $pid
  59 kill -9 $pid
  60 
  61 OPTIONS="-Djava.library.path=$STARTDIR/../src/os/solaris/proc/sparcv9:$STARTDIR/../solaris/sparcv9 -Dsun.jvm.hotspot.debugger.useProcDebugger"
  62 
  63 # run libproc client
  64 $SA_JAVA -d64 -showversion ${OPTIONS} -cp $STARTDIR/../../build/classes::$STARTDIR/../sa.jar:$STARTDIR LibprocClient x core.$pid
  65 
  66 # delete core
  67 rm -f core.$pid


  41 if [ "x$SA_JAVA" = "x" ]; then
  42    SA_JAVA=java
  43 fi
  44 
  45 STARTDIR=`dirname $0`
  46 
  47 # create java process with test case
  48 tmp=/tmp/libproctest
  49 rm -f $tmp
  50 $SA_JAVA -d64 -classpath $STARTDIR LibprocTest > $tmp &
  51 pid=$!
  52 while [ ! -s $tmp ] ; do
  53   # Kludge alert!
  54   sleep 2
  55 done
  56 
  57 # dump core
  58 gcore $pid
  59 kill -9 $pid
  60 
  61 OPTIONS="-Djava.library.path=$STARTDIR/../src/os/solaris/proc/sparcv9:$STARTDIR/../solaris/sparcv9"
  62 
  63 # run libproc client
  64 $SA_JAVA -d64 -showversion ${OPTIONS} -cp $STARTDIR/../../build/classes::$STARTDIR/../sa.jar:$STARTDIR LibprocClient x core.$pid
  65 
  66 # delete core
  67 rm -f core.$pid
agent/test/libproc/libproctest64.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File