7140868: TEST_BUG: jcmd tests need to use -XX:+UsePerfData

Reviewed-by: fparain, dholmes
This commit is contained in:
Frederic Parain 2012-02-14 07:28:29 -08:00
parent abfc726cc4
commit 52739303db
5 changed files with 8 additions and 8 deletions

View File

@ -28,6 +28,6 @@
JCMD="${TESTJAVA}/bin/jcmd"
${JCMD} 2>&1 | awk -f ${TESTSRC}/jcmd_Output1.awk
${JCMD} -J-XX:+UsePerfData 2>&1 | awk -f ${TESTSRC}/jcmd_Output1.awk
${JCMD} -l 2>&1 | awk -f ${TESTSRC}/jcmd_Output1.awk
${JCMD} -J-XX:+UsePerfData -l 2>&1 | awk -f ${TESTSRC}/jcmd_Output1.awk

View File

@ -46,7 +46,7 @@ failed=0
# -f <script>
rm -f jcmd.out 2>/dev/null
${JCMD} $appJavaPid -f ${TESTSRC}/dcmd-script.txt | awk '{ if (NR>1) print $0;}' > jcmd.out 2>&1
${JCMD} -J-XX:+UsePerfData $appJavaPid -f ${TESTSRC}/dcmd-script.txt | awk '{ if (NR>1) print $0;}' > jcmd.out 2>&1
echo jcmd.out
diff -w jcmd.out ${TESTSRC}/help_help.out
if [ $? != 0 ]; then

View File

@ -46,7 +46,7 @@ failed=0
# help help
rm -f jcmd.out 2>/dev/null
${JCMD} $appJavaPid help help | awk '{ if (NR>1) print $0;}' > jcmd.out 2>&1
${JCMD} -J-XX:+UsePerfData $appJavaPid help help | awk '{ if (NR>1) print $0;}' > jcmd.out 2>&1
echo jcmd.out
diff -w jcmd.out ${TESTSRC}/help_help.out
if [ $? != 0 ]; then

View File

@ -29,7 +29,7 @@
JCMD="${TESTJAVA}/bin/jcmd"
rm -f jcmd.out 2>/dev/null
${JCMD} -h > jcmd.out 2>&1
${JCMD} -J-XX:+UsePerfData -h > jcmd.out 2>&1
diff -w jcmd.out ${TESTSRC}/usage.out
if [ $? != 0 ]
@ -40,7 +40,7 @@ then
fi
rm -f jcmd.out 2>/dev/null
${JCMD} -help > jcmd.out 2>&1
${JCMD} -J-XX:+UsePerfData -help > jcmd.out 2>&1
diff -w jcmd.out ${TESTSRC}/usage.out
if [ $? != 0 ]

View File

@ -45,11 +45,11 @@ set +e
failed=0
# help command
${JCMD} $appJavaPid help 2>&1 | awk -f ${TESTSRC}/jcmd_pid_Output1.awk
${JCMD} -J-XX:+UsePerfData $appJavaPid help 2>&1 | awk -f ${TESTSRC}/jcmd_pid_Output1.awk
if [ $? != 0 ]; then failed=1; fi
# PerfCounter.list option
${JCMD} $appJavaPid PerfCounter.print 2>&1 | awk -f ${TESTSRC}/jcmd_pid_Output2.awk
${JCMD} -J-XX:+UsePerfData $appJavaPid PerfCounter.print 2>&1 | awk -f ${TESTSRC}/jcmd_pid_Output2.awk
if [ $? != 0 ]; then failed=1; fi
set -e