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

TEST_BUG: RegTest-cte CTE_REGTEST/Generic/4092033/Test4092033.java

XMLWordPrintable

    • rc
    • x86
    • linux
    • Verified



      Name: mmR10223 Date: 04/18/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.1-b21, JDK1.4.2-b20
      Testbase : RegTest-cte
      Platform[s] : RedHat Linux 8.0 (GNOME), Sparc
      switch/Mode : -client
      Falling test[s]:
              CTE_REGTEST/Generic/4092033/Test4092033.java


      This test fails because the sintax error in the script Test4092033.sh

      Here is the code fragment from CTE_REGTEST/Generic/4092033/Test4092033.sh

      ....

          21 # set platform-dependent variables
          22 OS=`uname -s`
          23 case "$OS" in
          24 SunOS | Linux )
          25 NULL=/dev/null
          26 PS=":"
          27 FS="/"
          28 ## for solaris, linux it's HOME
          29 FILE_LOCATION=$HOME
          30 ;;
          31 Windows_* )
          32 NULL=NUL
          33 PS=";"
          34 FS="\\"
          35 echo "Test passed; Not valid for Win32"
          36 exit 0;
          37 ;;
          38 * )
          39 echo "Unrecognized system!"
          40 exit 1;
          41 ;;
          42 esac
      >> 43 * )
      >> 44 echo "Unrecognized system!"
      >> 45 exit 1;
      >> 46 ;;
      >> 47 esac

      ....

      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4092033/Test409
      2033.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b20/regtest/linux/redhat8.0_gno
      me-client_linux-20/workDir/cte/CTE_REGTEST/Generic/4092033/Test4092033.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its 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.4.2/linux"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-client"
      TESTVMOPTS="-client"

      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT
      _HOME/jemmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      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,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC
      _CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-20" -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/4092033/Test4092033.java"

      --- script end ---

      Script output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(2/239)----------
      /net/linux-15/export/home/java/regtest/cte/CTE_REGTEST/Generic/4092033/Test40920
      33.sh: line 43: syntax error near unexpected token `)'
      /net/linux-15/export/home/java/regtest/cte/CTE_REGTEST/Generic/4092033/Test40920
      33.sh: line 43: ` * )'
      result: Failed. Execution failed: exit code 2


      test result: Failed. Execution failed: exit code 2


      Specific machine info:
      ======================
      Hostname: linux-20
      OS: RedHat Linux 8.0 (GNOME)

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: