harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Harley (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-745) [classlib][nio] Refine some unstable tests for read/write operation in o.a.h.tests.java.nio.channels.SocketChannelTest
Date Tue, 04 Jul 2006 17:29:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-745?page=all ]
George Harley resolved HARMONY-745:

    Resolution: Fixed

Hi Andrew, 

Test enhancements committed in revision 419050. Please could you verify that everything has
been applied as expected. 

Interestingly enough, I see an intermittent failure of one of your test cases when run against
the 5.0 RI on Win XP. The test method test_read$LByteBufferII_blocking() occasionally fails
this assertion in assert_read$LByteBuffer(boolean isBlocking) ...

// assert total bytes read and the position of ByteBuffers
assertEquals(CAPACITY_NORMAL * 2, totalRead);    <<<----- FAILS !! totalRead == 200
assertEquals(CAPACITY_NORMAL, readContents[0].position());
assertEquals(CAPACITY_NORMAL, readContents[1].position());

It looks like this is actually down to a bug in the RI. Have you encountered anything like
this when running the API tests against the RI ? 

In the meantime, thank you for these enhancements. 

Best regards, 

> [classlib][nio] Refine some unstable tests for read/write operation in o.a.h.tests.java.nio.channels.SocketChannelTest
> ----------------------------------------------------------------------------------------------------------------------
>          Key: HARMONY-745
>          URL: http://issues.apache.org/jira/browse/HARMONY-745
>      Project: Harmony
>         Type: Test

>   Components: Classlib
>     Reporter: Andrew Zhang
>     Assignee: George Harley
>  Attachments: SocketChannelTest.diff
> Refine some unstable tests for read/write operation in o.a.h.tests.java.nio.channels.SocketChannelTest.

> They are testReadByteBufferArray_Blocking_ReadWriteRealData, testReadByteBufferArray_NonBlocking_ReadWriteRealData,
testReadByteBufferArrayIntInt_Blocking_ReadWriteRealData, testReadByteBufferArrayIntInt_NonBlocking_ReadWriteRealData.

> The unstable reasons are the same as Harmony-691. 
> I'll upload a patch to remove these tests and add new corresponding stable tests.
> Thanks!

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message