changeset 1863:e28f5ce71d00

6899444: Fix demo/jvmti tests so they can run in jtreg samevm mode, cleanup problemlist Reviewed-by: tbell
author ohair
date Mon, 09 Nov 2009 12:38:32 -0800
parents 3b91d7048414
children ab681c7e811a
files test/ProblemList.txt test/demo/jvmti/DemoRun.java
diffstat 2 files changed, 5 insertions(+), 35 deletions(-) [+]
line wrap: on
line diff
--- a/test/ProblemList.txt	Mon Nov 09 07:38:05 2009 -0800
+++ b/test/ProblemList.txt	Mon Nov 09 12:38:32 2009 -0800
@@ -512,26 +512,6 @@
 # Need to be marked othervm, or changed to be samevm safe
 com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java generic-all
 
-# Need to be marked othervm, or changed to be samevm safe
-demo/jvmti/gctest/Gctest.java					generic-all
-demo/jvmti/heapTracker/HeapTrackerTest.java			generic-all
-demo/jvmti/heapViewer/HeapViewerTest.java			generic-all
-demo/jvmti/hprof/CpuOldTest.java				generic-all
-demo/jvmti/hprof/CpuSamplesTest.java				generic-all
-demo/jvmti/hprof/CpuTimesDefineClassTest.java			generic-all
-demo/jvmti/hprof/CpuTimesTest.java				generic-all
-demo/jvmti/hprof/HeapAllTest.java				generic-all
-demo/jvmti/hprof/HeapBinaryFormatTest.java			generic-all
-demo/jvmti/hprof/HeapDumpTest.java				generic-all
-demo/jvmti/hprof/HeapSitesTest.java				generic-all
-demo/jvmti/hprof/MonitorTest.java				generic-all
-demo/jvmti/hprof/OptionsTest.java				generic-all
-demo/jvmti/hprof/StackMapTableTest.java				generic-all
-demo/jvmti/minst/MinstTest.java					generic-all
-demo/jvmti/mtrace/TraceJFrame.java				generic-all
-demo/jvmti/versionCheck/FailsWhenJvmtiVersionDiffers.java	generic-all
-demo/jvmti/waiters/WaitersTest.java				generic-all
-
 # Solaris sparc and others, exception in initializer
 javax/imageio/CachePremissionsTest/CachePermissionsTest.java 	generic-all
 
@@ -1124,20 +1104,6 @@
 # Solaris 10 client x86, java.lang.IndexOutOfBoundsException resumer Interrupted
 com/sun/jdi/SimulResumerTest.java				generic-all
 
-# OpenSolaris failures, Missing /usr/ucb/ps
-com/sun/jdi/ArrayLengthDumpTest.sh				generic-all
-com/sun/jdi/CatchCaughtTest.sh					generic-all
-com/sun/jdi/CatchPatternTest.sh					generic-all
-com/sun/jdi/GetLocalVariables3Test.sh				generic-all
-com/sun/jdi/GetLocalVariables4Test.sh				generic-all
-com/sun/jdi/JdbMethodExitTest.sh				generic-all
-com/sun/jdi/JdbMissStep.sh					generic-all
-com/sun/jdi/JdbVarargsTest.sh					generic-all
-com/sun/jdi/NotAField.sh					generic-all
-com/sun/jdi/Redefine-g.sh					generic-all
-com/sun/jdi/RedefineImplementor.sh				generic-all
-com/sun/jdi/RedefineMulti.sh					generic-all
-
 # Output of jps differs from expected output.
 #   Invalid argument count on solaris-sparc and x64
 sun/tools/jstatd/jstatdPort.sh					generic-all
--- a/test/demo/jvmti/DemoRun.java	Mon Nov 09 07:38:05 2009 -0800
+++ b/test/demo/jvmti/DemoRun.java	Mon Nov 09 12:38:32 2009 -0800
@@ -145,7 +145,7 @@
          */
         int nvm_options = 0;
         if ( vm_options != null ) nvm_options = vm_options.length;
-        String cmd[]     = new String[1 + (d64?1:0) + 5 + nvm_options];
+        String cmd[]     = new String[1 + (d64?1:0) + 7 + nvm_options];
         String cmdLine;
         int exitStatus;
         int i,j;
@@ -154,6 +154,10 @@
         cmdLine = "";
         cmdLine += (cmd[i++] = java);
         cmdLine += " ";
+        cmdLine += (cmd[i++] = "-cp");
+        cmdLine += " ";
+        cmdLine += (cmd[i++] = cdir);
+        cmdLine += " ";
         cmdLine += (cmd[i++] = "-Dtest.classes=" + cdir);
         if ( d64 ) {
             cmdLine += " ";