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

TEST_BUG: RegTest-cte CTE_REGTEST/Generic/4510822/Test4510822.sh

    Details

    • Subcomponent:
    • Resolved In Build:
      rc
    • CPU:
      x86
    • OS:
      windows_98
    • Verification:
      Verified

      Description



      Name: mmR10223 Date: 04/11/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b04
      Testbase : RegTest-cte
      Platform[s] : Windows 98
      switch/Mode : -client
      Falling test[s]:
              CTE_REGTEST/Generic/4510822/Test4510822.sh

      RegTest-cte CTE_REGTEST/Generic/4510822/Test4510822.sh test fails on
      JDK1.5.0-b04

      The test fails on Windows 98 Second Edition v 4.10 2222A with MKS Toolkit v 8.0
      with default parameters because the 'ps' command lists process names in
      uppercase mode.

      $ps
      PID Stat Name
      0xFFCF4BE9 32Z (KERNEL32.DLL)
      0xFFFF8C49 32 (MSGSRV32.EXE)
      0xFFFFBAD9 16DC (MPREXE.EXE)
      0xFFFE10DD 32DC (MSTASK.EXE)
      0xFFFFD37D 16DC (EXPLORER.EXE)
      0xFFFE9A29 32 (TASKMON.EXE)
      0xFFFE94BD 32C (SYSTRAY.EXE)
      0xFFFEF315 16DS (WINOA386.MOD)
      0xFFFEEEFD 16S (FAR.EXE)
      0xFFFD1CFD 32DS (WMIEXE.EXE)
      0xFFFD2639 16C (SH.EXE)
      0xFFFD11A5 32 (JAVA.EXE)
      0xFFFDD4B9 32 (DDHELP.EXE)
      0xFFFD1E69 32 (WINOA386.MOD)
      0xFFFCA451 16C (PSTORES.EXE)
      0xFFFC4065 32 (WINOA386.MOD)
      0xFFFCAD4D 32 (APPLETVIEWER.EXE)
      0xFFFCCAF5 16S (SH.EXE)
      0xFFFB1FED 32 (PS.EXE)
      $

      therefore the command form Test4510822.sh doesn't work.

      ....
      C_PID=`ps | grep "appletviewer" | grep "classic" | awk '{print $1}'`
      ....


      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4510822/Test451
      0822.sh

      jtr file location:
      ==================

      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b04/regtest/win32/win98_-client_
      linux-17/workD
      ir/cte/CTE_REGTEST/Generic/4510822/Test4510822.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="h:/java/jct"
      JAVA_HOME="h:/java/jdk1.5.0/win32"
      TEST_BASE_PATH="h:/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/je
      mmy.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,windir=$wind
      ir,PATH=${SHEL
      L%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_
      US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-17" -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/4510822/Test4510822.sh"

      --- script end ---

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

      Test output (jtr part):
      =======================
      ----------System.out:(1/13)----------
      Test Passed
      ----------System.err:(3/168)*----------
      java full version "1.5.0-beta-b04"
      kill: k:\\regtest.tiger\\cte\\CTE_REGTEST\\Generic\\4510822\\Test4510822.sh 66:
      Usage: kill -l
      [status]
      kill [-s SIGNAL] job ...
      result: Failed. Execution failed: Program `sh' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `sh' interrupted! (timed out?)


      Specific machine info:
      ======================
      Hostname: linux-17
      OS: Windows 98

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: