8034000: lack of /othervm option can cause some RMI tests to fail
Reviewed-by: darcy, alanb
--- a/jdk/test/java/rmi/MarshalledObject/compare/NullReference.java Thu Feb 13 11:47:43 2014 -0800
+++ b/jdk/test/java/rmi/MarshalledObject/compare/NullReference.java Thu Feb 13 14:48:39 2014 -0800
@@ -24,7 +24,9 @@
/*
* @test
* @bug 4105900
- * @summary MarshalledObject with null throws NullPointerException
+ * @summary MarshalledObject with null throws NullPointerException.
+ * This test does not affect VM global state, so othervm
+ * is not required.
* @author Ken Arnold
*
* @run main NullReference
--- a/jdk/test/java/rmi/server/Unmarshal/PrimitiveClasses.java Thu Feb 13 11:47:43 2014 -0800
+++ b/jdk/test/java/rmi/server/Unmarshal/PrimitiveClasses.java Thu Feb 13 14:48:39 2014 -0800
@@ -24,7 +24,8 @@
/* @test
* @bug 4442373
* @summary Verify that RMI can successfully unmarshal Class objects for
- * primitive types.
+ * primitive types. This test does not affect VM global state,
+ * so othervm is not required.
* @run main PrimitiveClasses
*/
--- a/jdk/test/javax/rmi/ssl/SocketFactoryTest.java Thu Feb 13 11:47:43 2014 -0800
+++ b/jdk/test/javax/rmi/ssl/SocketFactoryTest.java Thu Feb 13 14:48:39 2014 -0800
@@ -25,6 +25,8 @@
* @test
* @bug 4932837 6582235
* @summary Test SslRMI[Client|Server]SocketFactory equals() and hashCode().
+ * This test does not affect VM global state, so othervm is
+ * not required.
* @author Daniel Fuchs
*
* @run main SocketFactoryTest
--- a/jdk/test/sun/rmi/log/ReliableLog/LogAlignmentTest.java Thu Feb 13 11:47:43 2014 -0800
+++ b/jdk/test/sun/rmi/log/ReliableLog/LogAlignmentTest.java Thu Feb 13 14:48:39 2014 -0800
@@ -25,7 +25,7 @@
* @bug 4094889
* @summary rmid can have a corrupted log
*
- * @run main LogAlignmentTest
+ * @run main/othervm LogAlignmentTest
*/
/* Fault: ReliableLog used RandomAccessFile.skipBytes() to seek past the end
--- a/jdk/test/sun/rmi/log/ReliableLog/SnapshotSize.java Thu Feb 13 11:47:43 2014 -0800
+++ b/jdk/test/sun/rmi/log/ReliableLog/SnapshotSize.java Thu Feb 13 14:48:39 2014 -0800
@@ -26,7 +26,7 @@
* @summary Verify that ReliableLog.snapshotSize() returns correct snapshot
* file size even if LogHandler doesn't flush.
*
- * @run main SnapshotSize
+ * @run main/othervm SnapshotSize
*/
import java.io.ByteArrayOutputStream;
--- a/jdk/test/sun/rmi/rmic/classpath/RMICClassPathTest.java Thu Feb 13 11:47:43 2014 -0800
+++ b/jdk/test/sun/rmi/rmic/classpath/RMICClassPathTest.java Thu Feb 13 14:48:39 2014 -0800
@@ -28,7 +28,8 @@
/* @test
* @bug 6610897
* @summary New constructor in sun.tools.java.ClassPath builds a path using
- * File.separator instead of File.pathSeparator
+ * File.separator instead of File.pathSeparator. This test does
+ * not affect VM global state, so othervm is not required.
* @run main RMICClassPathTest
*/