8273246: Amend the test java/nio/channels/DatagramChannel/ManySourcesAndTargets.java to execute in othervm mode

Reviewed-by: alanb
This commit is contained in:
Mark Sheppard 2021-09-07 22:18:23 +00:00
parent 708407eddc
commit d6d6c0692b
2 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ files.app=lsof
net.netstat.app=netstat
net.netstat.av.args=-av
net.netstat.aL.args=-aL
net.netstat.m.args=-m
net.netstat.m.args=-mm
net.netstat.s.args=-s
net.ifconfig.app=ifconfig
net.ifconfig.args=-a

View File

@ -25,7 +25,7 @@
* @bug 8234805 8235193
* @summary Test DatagramChannel send/receive and that receive returns the expected
* sender address
* @run main ManySourcesAndTargets
* @run main/othervm ManySourcesAndTargets
* @run main/othervm -Djava.net.preferIPv4Stack=true ManySourcesAndTargets
*/
@ -140,7 +140,7 @@ public class ManySourcesAndTargets {
for (int i = 0; i < count; i++) {
System.out.format("send %s -> %s%n", local, remote);
reader.send(ByteBuffer.allocate(32), remote);
sender.send(ByteBuffer.allocate(32), remote);
ByteBuffer bb = ByteBuffer.allocate(1000);
SocketAddress source = reader.receive(bb);
@ -170,4 +170,4 @@ public class ManySourcesAndTargets {
return Optional.empty();
}
}
}
}