RFR: 8325576: java/lang/ProcessHandle/InfoTest.java fails on systems with coreutils with --enable-single-binary

Aleksey Shipilev shade at openjdk.org
Tue Feb 13 10:15:10 UTC 2024


On Fri, 9 Feb 2024 23:40:00 GMT, Dan Lutker <dlutker at openjdk.org> wrote:

> Ran the test on AmazonLinux 2 which has multiple binaries from coreutils package and no coreutils executable as well as AmazonLinux 2023 that uses `--enable-single-binary`

test/jdk/java/lang/ProcessHandle/InfoTest.java line 321:

> 319:                     String[] args = info.arguments().get();
> 320:                     if (args.length > 0) {
> 321:                         if (timeIsLastParam) {

I gotta ask: is it true that time argument is the last param in _all_ testing modes? If so, we don't need `timeIsLastParam` at all?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17798#discussion_r1487540871


More information about the core-libs-dev mailing list