mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 12:20:29 +00:00
8382018: test/jdk/java/nio/file/spi/SetDefaultProvider.java leaves a directory in /tmp
Reviewed-by: alanb, mbaesken
This commit is contained in:
parent
e7da7376cd
commit
1e2b0d2b67
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2026, 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
|
||||
@ -41,7 +41,7 @@ public class Main {
|
||||
throw new RuntimeException("FileSystemProvider not overridden");
|
||||
|
||||
// exercise the file system
|
||||
Path dir = Files.createTempDirectory("tmp");
|
||||
Path dir = Files.createTempDirectory(Path.of(""), "tmp");
|
||||
if (dir.getFileSystem() != fs)
|
||||
throw new RuntimeException("'dir' not in default file system");
|
||||
System.out.println("created: " + dir);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user