RFR: 8249693: java/nio/channels/FileChannel/FileExtensionAndMap.java uses @ignore w/o bug id
Alan Bateman
alanb at openjdk.org
Wed Nov 9 18:38:31 UTC 2022
On Mon, 7 Nov 2022 19:13:24 GMT, Matthew Donovan <duke at openjdk.org> wrote:
> Added a check that source and destination volumes have enough space to run the test.
>
> This test will no longer be ignored.
test/jdk/java/nio/channels/FileChannel/FileExtensionAndMap.java line 134:
> 132: long totalDiskSpaceNeeded = FILESIZE * PARALLELISM;
> 133:
> 134: if (Files.getFileStore(tmpDir).name().equals(Files.getFileStore(destinationPath).name())) {
I think you should be using FileStore::equals rather than equality of the name here.
test/jdk/java/nio/channels/FileChannel/FileExtensionAndMap.java line 139:
> 137: if (usableDiskSpace < totalDiskSpaceNeeded) {
> 138: throw new SkippedException("Insufficient disk space on " + TMPDIR + ". Test requires: " + totalDiskSpaceNeeded + ". Available on disk: " + usableDiskSpace);
> 139: }
Can you break. these overfly long lines so that future side-by-side diffs are possible?
-------------
PR: https://git.openjdk.org/jdk/pull/11028
More information about the nio-dev
mailing list