Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4396698

JCK: 6 JCK MulticastSocket tests fail on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      x86
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: skR10017 Date: 12/09/2000



      The following JCK1.3 tests fail on Windows:
           api/java_net/MulticastSocket/descriptions.html#joinGroup
           api/java_net/MulticastSocket/descriptions.html#getInterface
           api/java_net/MulticastSocket/descriptions.html#setTimeToLive
           api/java_net/MulticastSocket/descriptions.html#send
           api/java_net/MulticastSocket/descriptions.html#leaveGroup
           api/java_net/MulticastSocket/descriptions.html#setTTL

      To reproduce the bug, run script below
      You should set JCK and JAVA_HOME.
      -------------------------------------------------------------------------------------
      #!/bin/sh
      JAVA_HOME="H:/jdk1.4.0/win32"
      JCK="H:/jck1.3/JCK-runtime-13fcs"
      CLASSPATH="$JCK/classes;$JCK/javatest.jar"
      export CLASSPATH
      executeClass="javasoft.sqe.tests.api.java.net.MulticastSocket.joinGroupTests"

      $JAVA_HOME/bin/java -version
      $JAVA_HOME/bin/java -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
      RESULT="$?"
      if [ $RESULT = 95 ]; then
       echo Test passed
      elif [ $RESULT = 97 ]; then
       echo Test failed
      else
       echo Result is $RESULT
      fi
      --------------------------------------------------------------------------------------

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b42)
      Java HotSpot(TM) Client VM (build B42, mixed mode)
      MulticastSocket2005: Failed. Can not join multicast group:java.net.BindException: Cannot assign requested address: set IP_MULTICAST_IF failed
      MulticastSocket1003: Failed. Can not join multicast group:java.net.BindException: Cannot assign requested address: set IP_MULTICAST_IF failed
      MulticastSocket1004: Failed. Can not join multicast group:java.net.BindException: Cannot assign requested address: set IP_MULTICAST_IF failed
      MulticastSocket1005: Passed. OKAY
      MulticastSocket1006: Passed. OKAY
      MulticastSocket1007: Passed. OKAY
      STATUS:Failed. tests: 6; passed: 3; failed: 3; first test case failure: MulticastSocket2005

      ======================================================================

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ywangsunw Yingxian Wang (Inactive)
                Reporter:
                kotlsunw Kotl Kotl (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: