Harmony
  1. Harmony
  2. HARMONY-1977

[classlib][nio] Unit test org.apache.harmony.nio.tests.java.nio.channels.SocketChannelTest fails on Windows 2003 server

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None

      Description

      The test testSocket_NonBlock_ActionsBeforeConnect() fails with the folowing assertion on both IBM VM and drlvm:

      Failure
      Should throw BindException

      junit.framework.AssertionFailedError: Should throw BindException at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:14) at org.apache.harmony.nio.tests.java.nio.channels.SocketChannelTest.assertSocketAction_NonBlock_BeforeConnect(SocketChannelTest.java:488) at org.apache.harmony.nio.tests.java.nio.channels.SocketChannelTest.testSocket_NonBlock_ActionsBeforeConnect(SocketChannelTest.java:329) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 0.032
      testSocket_Block_ActionsAfterConnect Success

      The test passes on linux.

        Activity

        Show
        Alexei Fedotov added a comment - See http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg18117.html about proposed resolution See http://wiki.apache.org/harmony/Unit_Tests_Pass_on_DRLVM about importance of this issue
        Hide
        Alexei Zakharov added a comment -

        I cannot run this test since a lot of NIO tests including SocketChannelTest crash for me on DRLVM even on WinXP. See HARMONY-2285.

        Show
        Alexei Zakharov added a comment - I cannot run this test since a lot of NIO tests including SocketChannelTest crash for me on DRLVM even on WinXP. See HARMONY-2285 .
        Hide
        Alexei Fedotov added a comment -

        Alexey, HARMONY-2285 is no longer a blocker for this issue. Please, check it once again when you find time.

        Show
        Alexei Fedotov added a comment - Alexey, HARMONY-2285 is no longer a blocker for this issue. Please, check it once again when you find time.
        Hide
        Alexei Zakharov added a comment -

        I excluded the whole SocketChannelTest since we currently don't have a technology in Harmony to exclude the particular test case. At revision r480589. Elena , please check. BTW, is this failure actual for J9 VM and for 64-bit ws2003 platform?

        Show
        Alexei Zakharov added a comment - I excluded the whole SocketChannelTest since we currently don't have a technology in Harmony to exclude the particular test case. At revision r480589. Elena , please check. BTW, is this failure actual for J9 VM and for 64-bit ws2003 platform?
        Hide
        Alexei Zakharov added a comment -

        Elena, Alexei, are you ok with such resolution?

        Show
        Alexei Zakharov added a comment - Elena, Alexei, are you ok with such resolution?
        Hide
        Alexei Fedotov added a comment -

        Verified

        Show
        Alexei Fedotov added a comment - Verified
        Hide
        Alexei Fedotov added a comment -

        Alexey,
        Please return the test

        Only one testcase should be excluded - it is invalid. See http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg17329.html for justification.

        Show
        Alexei Fedotov added a comment - Alexey, Please return the test Only one testcase should be excluded - it is invalid. See http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg17329.html for justification.
        Hide
        Alexei Fedotov added a comment -

        (Clarification) The test case should be permanently removed.

        Show
        Alexei Fedotov added a comment - (Clarification) The test case should be permanently removed.
        Hide
        Alexei Zakharov added a comment -

        Committed at r480996. Please check.

        Show
        Alexei Zakharov added a comment - Committed at r480996. Please check.
        Hide
        Alexei Fedotov added a comment -

        Verified

        Class org.apache.harmony.nio.tests.java.nio.channels.SocketChannelTest
        Name/Tests/Errors/Failures: SocketChannelTest/81/0/0

        Show
        Alexei Fedotov added a comment - Verified Class org.apache.harmony.nio.tests.java.nio.channels.SocketChannelTest Name/Tests/Errors/Failures: SocketChannelTest/81/0/0

          People

          • Assignee:
            Alexei Zakharov
            Reporter:
            Elena Semukhina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development