# HG changeset patch # User smarks # Date 1392331719 28800 # Node ID d5c38e7ba6d07ede670c41c4721e750548c2a633 # Parent cf587f317be6216afc34fdcb91f7ff4c36ab065d 8034000: lack of /othervm option can cause some RMI tests to fail Reviewed-by: darcy, alanb diff -r cf587f317be6 -r d5c38e7ba6d0 jdk/test/java/rmi/MarshalledObject/compare/NullReference.java --- 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 diff -r cf587f317be6 -r d5c38e7ba6d0 jdk/test/java/rmi/server/Unmarshal/PrimitiveClasses.java --- 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 */ diff -r cf587f317be6 -r d5c38e7ba6d0 jdk/test/javax/rmi/ssl/SocketFactoryTest.java --- 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 diff -r cf587f317be6 -r d5c38e7ba6d0 jdk/test/sun/rmi/log/ReliableLog/LogAlignmentTest.java --- 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 diff -r cf587f317be6 -r d5c38e7ba6d0 jdk/test/sun/rmi/log/ReliableLog/SnapshotSize.java --- 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; diff -r cf587f317be6 -r d5c38e7ba6d0 jdk/test/sun/rmi/rmic/classpath/RMICClassPathTest.java --- 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 */