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

agent/test/libproc/libproctest.sh

Print this page




  42 
  43 if [ "x$SA_JAVA" = "x" ]; then
  44    SA_JAVA=java
  45 fi
  46 
  47 # create java process with test case
  48 tmp=/tmp/libproctest
  49 rm -f $tmp
  50 $SA_JAVA -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 
  62 OPTIONS="-Djava.library.path=$STARTDIR/../src/os/solaris/proc/`uname -p`:$STARTDIR/../solaris/`uname -p` -Dsun.jvm.hotspot.debugger.useProcDebugger"
  63 
  64 # run libproc client
  65 $SA_JAVA -showversion ${OPTIONS} -cp $STARTDIR/../../build/classes::$STARTDIR/../sa.jar:$STARTDIR LibprocClient x core.$pid
  66 
  67 # delete core
  68 rm -f core.$pid


  42 
  43 if [ "x$SA_JAVA" = "x" ]; then
  44    SA_JAVA=java
  45 fi
  46 
  47 # create java process with test case
  48 tmp=/tmp/libproctest
  49 rm -f $tmp
  50 $SA_JAVA -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 
  62 OPTIONS="-Djava.library.path=$STARTDIR/../src/os/solaris/proc/`uname -p`:$STARTDIR/../solaris/`uname -p`"
  63 
  64 # run libproc client
  65 $SA_JAVA -showversion ${OPTIONS} -cp $STARTDIR/../../build/classes::$STARTDIR/../sa.jar:$STARTDIR LibprocClient x core.$pid
  66 
  67 # delete core
  68 rm -f core.$pid
agent/test/libproc/libproctest.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File