RFR: 8280965: Tests com/sun/net/httpserver/simpleserver fail with FileSystemException on Windows 11
Daniel Fuchs
dfuchs at openjdk.java.net
Thu Feb 3 11:23:11 UTC 2022
On Thu, 3 Feb 2022 09:24:46 GMT, Julia Boes <jboes at openjdk.org> wrote:
> This change updates the tests in question to handle the case where sym link creation is not supported, as observed on Windows 11 where additional privileges are required to create sym links.
>
> Testing: tier 1-3 across platforms, plus tests in question on Windows 11 specifically
test/jdk/com/sun/net/httpserver/simpleserver/CustomFileSystemTest.java line 74:
> 72: import jdk.test.lib.Platform;
> 73: import jdk.test.lib.net.URIBuilder;
> 74: import jtreg.SkippedException;
Same remark here:
You should use the testng exception instead - testng doesn't recognize the jtreg exception
test/jdk/com/sun/net/httpserver/simpleserver/SimpleFileServerTest.java line 55:
> 53: import jdk.test.lib.net.URIBuilder;
> 54: import jdk.test.lib.util.FileUtils;
> 55: import jtreg.SkippedException;
You should use the testng exception instead - testng doesn't recognize the jtreg exception
-------------
PR: https://git.openjdk.java.net/jdk/pull/7335
More information about the net-dev
mailing list