Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6621

[classlib][nio] Minor testcase improvements to ServerSocketChannelTest and SocketChannelTest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • Patch Available
    • Novice

    Description

      ServerSocketChannelTest will hang in 4 tests when run on platforms that have small socket buffers, such as z/OS. The tests are trying to send large amounts of data, so if the read or write cannot complete before the corresponding write or read takes place then the I/O will block from returning. I think this can only be fixed by having using threads in the testcase.

      Minor change to SocketChannelTest.testCFII_StatusAfterFinish to remove output to stderr and fail if the expected exception wasn't thrown.

      Attachments

        1. nio.patch
          5 kB
          Catherine Hope

        Activity

          People

            odeakin Oliver Deakin
            chope Catherine Hope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: