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

TEST_BUG: CTE_REGTEST/Generic/4433658/Test4433658.sh test fails

XMLWordPrintable

    • itanium
    • linux



      Name: iaR10016 Date: 07/28/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b11
      Testbase : RegTest-cte
      Platform[s] : RedHat Linux 2.1 Adv. Server
      switch/Mode : all
      Falling tests : CTE_REGTEST/Generic/4433658/Test4433658.sh

      It is supposed that RegTest-cte CTE_REGTEST/Generic/4433658/Test4433658.sh test
      is not valid for 64-bit Linux systems.

      Here is the code fragment from the test source:

      --------- CTE_REGTEST/Generic/Test4433658.sh ---------
      ...
      027> # set platform-dependent variables
      028> OS=`uname -s`
      029> case "$OS" in
      030> SunOS )
      031> NULL=/dev/null
      032> PS=":"
      033> FS="/"
      034> MTYPE=`uname -p`
      035> ;;
      036> Linux )
      037> NULL=/dev/null
      038> PS=":"
      039> FS="/"
      040> MTYPE="linux"
      041> Check64Bit=`${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} Check64Bit`
      042> if [ $Check64Bit = 1 ]
      043> then
      044> echo "Test passed, not valid for 64 bit JDK"
      045> exit 0
      046> fi
      047> ;;
      048> Windows_* )
      049> NULL=NUL
      050> PS=";"
      051> FS="\\"
      052> echo "Test passed; Not for Win32"
      053> exit 0;
      054> ;;
      055> * )
      056> echo "Unrecognized system!"
      057> exit 1;
      058> ;;
      059> esac
      060>
      061> CLASSPATH=.${PS}${TESTCLASSES} ; export CLASSPATH
      ...
      ------------------------------------------------------

      $CLASSPATH variable is not set before the line 41 execution, so Check64Bit class
      can not be found and the test fails on RedHat Linux Adv. Server (64-bit).

      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4433658/Test4433658.sh

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b11/regtest/linux//workDir/cte/CTE_REGTEST/Generic/4433658/Test4433658.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change it's variables)

      --- script start ---
      #!/bin/sh

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="/net/linux-15/export/home/java/jct"
      JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/linux"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"
      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME
      JTOPTS="-server"
      TESTVMOPTS="-server"
      export CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1
      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="JCC-ITANIUM-01" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/CTE_REGTEST/Generic/4433658/Test4433658.sh"
      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:shell
      ----------messages:(3/119)----------
      command: shell Test4433658.sh
      reason: User specified action: run shell Test4433658.sh
      elapsed time (seconds): 21.638
      ----------System.out:(4/98)----------
        inflated: i386libjnibug.so
        inflated: linuxlibjnibug.so
        inflated: sparclibjnibug.so
      Test Failed
      ----------System.err:(3/225)----------
      Exception in thread "main" java.lang.NoClassDefFoundError: Check64Bit
      /net/jtgb4u4c/export/sail16/cte1.5.0-b11/test/CTE_REGTEST/Generic/4433658/Test4433658.sh: [: =: unary operator expected
      java full version "1.5.0-beta-b11"
      result: Failed. Execution failed: exit code 1

      test result: Failed. Execution failed: exit code 1

      Specific machine info:
      ======================
      Hostname: JCC-ITANIUM-01
      OS: RedHat Linux 2.1 Adv. Server

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

            asaha Abhijit Saha
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: