6541631: (fc) java/nio/channels/Filechannel/LongTransferTest.java should clean up after itself
Should close the channel before delete the file Reviewed-by: alanb
This commit is contained in:
parent
0d5d6271b3
commit
35038e62cd
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
/* @test
|
||||
@bug 5105464 6269047
|
||||
@bug 5105464 6269047 6541631
|
||||
* @summary Test to transfer bytes with a size bigger than Integer.MAX_VALUE
|
||||
*/
|
||||
|
||||
@ -81,9 +81,11 @@ public class LongTransferTest {
|
||||
System.out.println("LongTransferTest-main: OK!");
|
||||
|
||||
socket.close();
|
||||
|
||||
server.close();
|
||||
|
||||
inChannel.close();
|
||||
outChannel.close();
|
||||
|
||||
inFile.delete();
|
||||
outFile.delete();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user