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

2 Regtest-CTE tests fail on Windows 98 due to improper ps usage

XMLWordPrintable

    • fcs
    • x86
    • windows_98
    • Verified



      Name: asR10013 Date: 09/05/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.1
      Testbase : RegTest-CTE
      Platform[s] : Windows 98
      Falling test[s]:
        CTE_REGTEST/Generic/4688375/GetThreadGroupChildren.sh
      CTE_REGTEST/Generic/4705330/RedefineClearBreakpoint.sh

      These tests use the ps -ef command to kill child processes but MKS ps does not allow
      the f flag on Windows 98:

      ps: Unknown option -f
      Usage: ps [-lmtPce] [pid ...]

      Here is the part of CTE_REGTEST/Generic/4688375/GetThreadGroupChildren.sh:

      killgroup()
      {
          if [ $# != 0 ] ; then
              # Kill processes in the $1 group
              # kill -9 -pid doesn't do what we need so we
              # find all the processes in the group and kill them
              # explicitly
              xxx=`ps -ef | awk "\\$3 == $1 {print \\$2}"`
              if [ ! -z "$xxx" ] ; then
                  kill -9 $xxx > $devnull 2>&1
              fi
          fi
      }


      I used MKS 7.0.1 and MKS 8.0, both with the same result.
      The same ps executable allows to use -f on Windows NT-based platforms and rejects
      it on Windows 9x platforms (this is probably because the two Windows branches use
      different APIs for process information retrival).

      As the result, child processes are not killed, the tests hang and disable access
      to jdbOutput.txt for subsequent tests.

      The tests pass on other platforms (Linux (32), Windows 2000 (32), Solaris 8/x86 (32)).

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

      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/cte/CTE_REGTEST/Generic/4688375/GetThreadGroupChildren.jtr
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/cte/CTE_REGTEST/Generic/4705330/RedefineClearBreakpoint.jtr

      How to reproduce:
      =================
      Start JT3.1 using the jtreg script.
      Run the tests.

      Specific Machine Info:
      ======================
      Hostname: linux-17
      Os: Windows 98



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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: