8382018: test/jdk/java/nio/file/spi/SetDefaultProvider.java leaves a directory in /tmp

Reviewed-by: alanb, mbaesken
This commit is contained in:
Arno Zeller 2026-04-11 19:42:35 +00:00 committed by Martin Doerr
parent e7da7376cd
commit 1e2b0d2b67

View File

@ -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);