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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: