changeset 393:267da79ad5d8

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
author sherman
date Fri, 27 Jun 2008 12:09:37 -0700
parents d20c51803e8b
children 47c4a285e238 bc9a0bba6e72 844a53a24d06
files test/java/nio/channels/FileChannel/LongTransferTest.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/channels/FileChannel/LongTransferTest.java	Fri Jun 27 09:05:11 2008 -0700
+++ b/test/java/nio/channels/FileChannel/LongTransferTest.java	Fri Jun 27 12:09:37 2008 -0700
@@ -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,8 +81,10 @@
         System.out.println("LongTransferTest-main: OK!");
 
         socket.close();
+        server.close();
 
-        server.close();
+        inChannel.close();
+        outChannel.close();
 
         inFile.delete();
         outFile.delete();