6899444: Fix demo/jvmti tests so they can run in jtreg samevm mode, cleanup problemlist
authorohair
Mon, 09 Nov 2009 12:38:32 -0800
changeset 4229 b09f9b9f75c5
parent 4228 87bff8dd4f7e
child 4230 e208dda74f1c
6899444: Fix demo/jvmti tests so they can run in jtreg samevm mode, cleanup problemlist Reviewed-by: tbell
jdk/test/ProblemList.txt
jdk/test/demo/jvmti/DemoRun.java
--- a/jdk/test/ProblemList.txt	Mon Nov 09 07:38:05 2009 -0800
+++ b/jdk/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/jdk/test/demo/jvmti/DemoRun.java	Mon Nov 09 07:38:05 2009 -0800
+++ b/jdk/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 += " ";