提交 d05cedcc 编写于 作者: S sherman

6541631: (fc) java/nio/channels/Filechannel/LongTransferTest.java should clean up after itself

Summary: Should close the channel before delete the file
Reviewed-by: alanb
上级 73f83783
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*/ */
/* @test /* @test
@bug 5105464 6269047 @bug 5105464 6269047 6541631
* @summary Test to transfer bytes with a size bigger than Integer.MAX_VALUE * @summary Test to transfer bytes with a size bigger than Integer.MAX_VALUE
*/ */
...@@ -81,9 +81,11 @@ public class LongTransferTest { ...@@ -81,9 +81,11 @@ public class LongTransferTest {
System.out.println("LongTransferTest-main: OK!"); System.out.println("LongTransferTest-main: OK!");
socket.close(); socket.close();
server.close(); server.close();
inChannel.close();
outChannel.close();
inFile.delete(); inFile.delete();
outFile.delete(); outFile.delete();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册