8246164: SendDatagramToBadAddress.java and ChangingAddress.java should be changed to explicitly require the new DatagramSocket implementation

This fix updates these tests to explicitly run with `-Djdk.net.usePlainDatagramSocketImpl=false` to avoid false failures when running all tests with a global jtreg -Djdk.net.usePlainDatagramSocketImpl switch.

Reviewed-by: vtewari
This commit is contained in:
Patrick Concannon 2020-07-31 12:12:49 +01:00
parent 1cc8d3a34b
commit 2dda9965cd
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@
*
* @summary DatagramSocket.send should throw exception when connected
* to an invalid destination (on platforms that support it).
* @run main/othervm -Djdk.net.usePlainDatagramSocketImpl=false SendDatagramToBadAddress
*/
import java.net.*;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,6 +25,7 @@
* @bug 6431343
* @summary Test that DatagramChannel.getLocalAddress returns the right local
* address after connect/disconnect.
* @run main/othervm -Djdk.net.usePlainDatagramSocketImpl=false ChangingAddress
*/
import java.net.*;
import java.nio.channels.DatagramChannel;