Skip to content

Commit ae9f318

Browse files
committed
8336301: test/jdk/java/nio/channels/AsyncCloseAndInterrupt.java leaves around a FIFO file upon test completion
Reviewed-by: alanb
1 parent 4166e53 commit ae9f318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/jdk/java/nio/channels/AsyncCloseAndInterrupt.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ private static void initFile() throws Exception {
155155
return;
156156
}
157157
fifoFile = new File("x.fifo");
158+
fifoFile.deleteOnExit();
158159
if (fifoFile.exists()) {
159160
if (!fifoFile.delete())
160161
throw new IOException("Cannot delete existing fifo " + fifoFile);

0 commit comments

Comments
 (0)