RFR: 8114830: (fs) Files.copy fails due to interference from something else changing the file system [v8]
Vyom Tewari
vtewari at openjdk.org
Thu Aug 10 06:34:59 UTC 2023
On Thu, 10 Aug 2023 02:33:32 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Throw a `FileSystemException` if attempting to create the target file with `O_EXCL` fails with `EEXIST`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8114830: Remove running.set(false) from catch bloblocks in test
test/jdk/java/nio/file/Files/CopyInterference.java line 91:
> 89: private static Stream<Arguments> pathAndOptionsProvider()
> 90: throws IOException {
> 91: Path parent = Path.of(System.getProperty("test.dir", "."));
I will suggest you to use "java.io.tmpdir" instead of "test.dir" so that all dir/files will get created in 'tmp' directory.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15141#discussion_r1289610634
More information about the nio-dev
mailing list