[jdk11u-dev] Integrated: 8238268: Many SA tests are not running on OSX because they do not attempt to use sudo when available

Christoph Langer clanger at openjdk.org
Tue Aug 2 11:01:02 UTC 2022


On Fri, 22 Jul 2022 22:04:47 GMT, Christoph Langer <clanger at openjdk.org> wrote:

> This is a backport of [JDK-8238268](https://bugs.openjdk.org/browse/JDK-8238268). We need it, because the backport of [JDK-8215544](https://bugs.openjdk.org/browse/JDK-8215544) has added code that calls `sudo -E` on MacOS without the option `-n`. This call might not return when sudo starts prompting for a password. In our CI it leads to hanging processes when subsequent tests call sudo, even with the -n option. This fix rectifies that behavior. And, after all, it improves test coverage on MacOS, so it's a good backport candidate.

This pull request has now been integrated.

Changeset: e80c7e18
Author:    Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.org/jdk11u-dev/commit/e80c7e1868982a70fffa83954ca8081256009b90
Stats:     491 lines in 40 files changed: 220 ins; 118 del; 153 mod

8238268: Many SA tests are not running on OSX because they do not attempt to use sudo when available
8238196: tests that use SA Attach should not be allowed to run against signed binaries on Mac OS X 10.14.5 and later

Reviewed-by: goetz
Backport-of: a147636157c011dac5d8c7aa6809c3c55f1384fa

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

PR: https://git.openjdk.org/jdk11u-dev/pull/1269


More information about the jdk-updates-dev mailing list