-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b04
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8293094 | 11.0.18-oracle | Kavya K S | P4 | Resolved | Fixed | b01 |
JDK-8286048 | 11.0.16 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
Different operating systems use different names for the environment variable that contains the search paths for native libraries. This path is used in a row of tests. A switch over all OSes is needed to find out the proper variable name in each test using it.
This change introduces a central function
Platform.sharedLibraryPathVariableName()
that returns "LD_LIBRARY_PATH", "DYLD_LIBRARY_PATH", "PATH" or "LIBPATH" depending on the current OS.
This change also adapts all usages of these variables in the tests to call this functions.
A similar pattern appears in a lot of shell tests. This change does not fix the
issue with those tests. This issue will be fixed once the tests are converted to Java.
The change also replaces local checking for path separators by File.pathSeparator in jdk/com/sun/jdi/PrivateTransportTest.java.
This change introduces a central function
Platform.sharedLibraryPathVariableName()
that returns "LD_LIBRARY_PATH", "DYLD_LIBRARY_PATH", "PATH" or "LIBPATH" depending on the current OS.
This change also adapts all usages of these variables in the tests to call this functions.
A similar pattern appears in a lot of shell tests. This change does not fix the
issue with those tests. This issue will be fixed once the tests are converted to Java.
The change also replaces local checking for path separators by File.pathSeparator in jdk/com/sun/jdi/PrivateTransportTest.java.
- backported by
-
JDK-8286048 [testbug] Introduce Platform.sharedLibraryPathVariableName() and adapt all tests.
- Resolved
-
JDK-8293094 [testbug] Introduce Platform.sharedLibraryPathVariableName() and adapt all tests.
- Resolved
- relates to
-
JDK-8217017 [TESTBUG] Tests fail to compile after JDK-8216265
- Closed
-
JDK-8217340 Compilation failed: tools/launcher/Test7029048.java
- Resolved
-
JDK-8293168 [TESTBUG] Tests fail to compile : package jdk.test.lib does not exist
- Resolved
(2 links to)