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

Test testEcoFriendly() in jdk tools launcher ExecutionEnvironment.java for AIX and Linux/musl is brittle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • client-libs
    • None
    • linux_alpine, aix

      The test testEcoFriendly() checks that the JDK launcher does not accidentally/unnecessarily pollute the LD_LIBRARY_PATH environment variable. It spawns a new VM, passing an environment with certain beacon values for the LD_LIBRARY_PATH environment variable and its equivalents and expects them to be unchanged in the child VM.

      Since the launcher on AIX and Linux/musl intentionally modifies LD_LIBRARY_PATH for reasons, its value in the child VM is not exactly what was passed in these scenarios. To cater for that, it is currently checked whether the value in the child VM is LD_LIBRARY_PATH of the current VM plus the beacon value.

      This check breaks, if the test VM was started with any value of LD_LIBRARY_PATH rather then it being not set, which we now do in some test setups. So we should either improve the check or maybe skip the subtest for AIX and Linux/musl altogether.

            jkern Joachim Kern
            jkern Joachim Kern
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: