RFR: 8282219: jdk/java/lang/ProcessBuilder/Basic.java fails on AIX [v2]

Ichiroh Takiguchi itakiguchi at openjdk.java.net
Tue Feb 22 17:31:53 UTC 2022


On Tue, 22 Feb 2022 17:20:25 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

>> Run jtreg:jdk/java/lang/ProcessBuilder/Basic.java on AIX.
>> The test was failed by:
>>   Incorrect handling of envstrings containing NULs
>> 
>> According to my investigation, this issue was happened after following change was applied.
>> JDK-8272600: (test) Use native "sleep" in Basic.java
>> 
>> test.nativepath value was added into AIX's LIBPATH during running this testcase.
>> On AIX, test.nativepath value should be removed from LIBPATH value before comparing the values.
>
> Ichiroh Takiguchi has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use expectedLibpath

@RogerRiggs 
I appreciate your good suggestion.
Since `libpath` is just used on AIX and it's `static final String`.
I created `expectedLibpath` for expected result.
About `removeAll` method, it requires regular expression string.
I think if directory name has `.`, unexpected situation may be happened.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7574


More information about the core-libs-dev mailing list