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

JCK: Socket tests fail on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • core-libs
    • x86
    • linux



      Name: kaC94536 Date: 12/09/2000



      The following JCK1.3 tests fail on Linux RedHat 6.2:
      api/java_net/ServerSocket/descriptions.html#Accept
      api/java_net/ServerSocket/descriptions.html#Ctor
      api/java_net/Socket/descriptions.html#toString
      api/java_net/Socket/descriptions.html#GetOutputStrea
      api/java_net/Socket/descriptions.html#getTcpNoDelay
      api/java_net/Socket/descriptions.html#setSoTimeout
      api/java_net/Socket/descriptions.html#Close
      api/java_net/Socket/descriptions.html#GetPort
      api/java_net/Socket/descriptions.html#getSoLinger
      api/java_net/Socket/descriptions.html#setKeepAlive
      api/java_net/Socket/descriptions.html#setSoLinger
      api/java_net/Socket/descriptions.html#GetLocalAddress
      api/java_net/Socket/descriptions.html#GetInetAddress
      api/java_net/Socket/descriptions.html#getSoTimeout
      api/java_net/Socket/descriptions.html#shutdown
      api/java_net/Socket/descriptions.html#setTcpNoDelay
      api/java_net/Socket/descriptions.html#GetInputStream
      api/java_net/Socket/descriptions.html#Ctor
      api/java_net/MulticastSocket/descriptions.html#joinGroup
      api/java_net/MulticastSocket/descriptions.html#leaveGroup

      The tests work fine with JDK Ladybird-b11.

      To reproduce the bug, run script below
      You may need to set JCK and JAVA_HOME.

      -------------------------------------------------------------------------------------
      #!/bin/sh
      SWITCH="$@"
      JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
      JCK=/net/orthello/home2/JCK-13
      CLASSPATH=$JCK/classes:$JCK/javatest.jar
      export CLASSPATH
      executeClass="javasoft.sqe.tests.api.java.net.ServerSocket.AcceptTests -TestCaseID ALL"

      $JAVA_HOME/bin/java ${SWITCH} -version
      $JAVA_HOME/bin/java ${SWITCH} -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

      ------------------------------------ output ------------------------------------------

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b42)
      Java HotSpot(TM) Client VM (build 1.4beta-B42, mixed mode)
      ServerSocket2002: Failed. Can not connect to ServerSocket:java.net.ConnectException: Connection refused
      STATUS:Failed. tests: 1; failed: 1; first test case failure: ServerSocket2002
      Test failed

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

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

            michaelm Michael McMahon
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: