-
Bug
-
Resolution: Unresolved
-
P4
-
25
-
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.
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.
- links to
-
Review(master) openjdk/jdk/24055