Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7145831

com.sun.javatest.lib.ProcessCommand should not remove enviroment variables

XMLWordPrintable

    • b04
    • generic
    • solaris_10
    • Verified

      The com.sun.javatest.lib.ProcessCommand class override enviroment executing Runtime.exec() method. The new runtime contains only the next variables

      XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
      NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat

      Usualy it is not what we are going to test.

      For instance, the libgnome library requiers the PATH variable to be set. It is because it tries to find the application specified as a gnome default application for the particular type of files.

      So the class should preserve at least the PATH enviroment variable when another JVM is executed. Actually, I do not see a reason to remove any user variables at all.

            bkurotsu Brian Kurotsuchi (Inactive)
            denis Denis Fokin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: