8336301: test/jdk/java/nio/channels/AsyncCloseAndInterrupt.java leaves around a FIFO file upon test completion

Reviewed-by: alanb
This commit is contained in:
Jaikiran Pai 2024-07-13 02:19:25 +00:00
parent 4166e53452
commit ae9f318fc3

@ -155,6 +155,7 @@ public class AsyncCloseAndInterrupt {
return;
}
fifoFile = new File("x.fifo");
fifoFile.deleteOnExit();
if (fifoFile.exists()) {
if (!fifoFile.delete())
throw new IOException("Cannot delete existing fifo " + fifoFile);