harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-738) [classlib][nio] Refine two unstable tests in o.a.h.tests.java.nio.channels.SourceChannelTest
Date Tue, 04 Jul 2006 06:28:29 GMT
[classlib][nio] Refine two unstable tests in o.a.h.tests.java.nio.channels.SourceChannelTest
--------------------------------------------------------------------------------------------

         Key: HARMONY-738
         URL: http://issues.apache.org/jira/browse/HARMONY-738
     Project: Harmony
        Type: Test

  Components: Classlib  
    Reporter: Andrew Zhang


Refine two unstable tests in o.a.h.tests.java.nio.channels.SourceChannelTest. 

They are test_read_$LByteBuffer(), test_read_$LByteBufferII(). 

Following code doesn't ensure all data are read in blocking mode:

	do {
	    long count = source.read(readBufArray, 0, 2);
	    if (count < 0) {
	         break;
	    }
	    totalCount += count;
	} while (totalCount != 10 && !isBlocking);

Also, sink.close() should be invoked to ensure that all data are sent.

I'll upload a patch soon.

Thanks!

Best regards,
Andrew

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message