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

Ichiroh Takiguchi itakiguchi at openjdk.java.net
Wed Feb 23 10:17:55 UTC 2022


On Tue, 22 Feb 2022 18:10:28 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Ichiroh Takiguchi has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use expectedLibpath
>
> For my curiosity, how is AIX different from other Linux in that the test.nativepath is not/should not be in LIBPATH?

@RogerRiggs 
Many thanks. that's good point.
Only 1st part has `test.nativepath` because of following code.

if (AIX.is()) {
    pb.environment().put("LIBPATH", libpath);
}

On current condition, parent (main) process have `test.nativepath` setting into LIBPATH environment, but child process does not require `test.nativepath` setting.
So just `libpath` value should not have `test.nativepath` related entry.
And above code does not require on current condition and this test said "Pass Empty environment to child".
So it should be removed.

#7581 is exactly same issue.
Please choose the appropriate one.

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

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


More information about the core-libs-dev mailing list