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

6 Regtest-test tests fail on Windows 98 due to improper ps usage

XMLWordPrintable

    • mantis
    • x86
    • windows_98
    • Verified



      Name: asR10013 Date: 09/04/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.1-b21
      Testbase : RegTest-test
      Platform[s] : Windows 98
      Falling test[s]:
      com/sun/jdi/DeoptimizeWalk.sh
      com/sun/jdi/NotAField.sh
      com/sun/jdi/RedefineBorland.sh
      com/sun/jdi/RedefineException.sh
      com/sun/jdi/RedefinePop.sh
      com/sun/jdi/WatchFramePop.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 ...]

      The code that do it resides in ShellScaffold.sh which is called by each of the tests.

      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.

      This bug report does not state that there are no other failure causes for these 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/test/com/sun/jdi/DeoptimizeWalk.jtr
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/test/com/sun/jdi/NotAField.jtr
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/test/com/sun/jdi/RedefineBorland.jtr
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/test/com/sun/jdi/RedefineException.jtr
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/test/com/sun/jdi/RedefinePop.jtr
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/test/com/sun/jdi/WatchFramePop.jtr

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


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

            busersunw Btplusnull User (Inactive)
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: