AdaptorMulticasting.java fails on MacOS/AArch64
Jaikiran Pai
jai.forums2013 at gmail.com
Tue Jul 19 14:22:47 UTC 2022
Hello Andrew,
Is it the test that's asking for the password or is it the jtreg failure
handler (which runs a bunch of post-failure commands for data
collection) that's asking for the password? One of the post-failure
commands is the "sudo dmesg" command of macos which requires the
password. So, I suspect that's the one which is prompting for the
password, *after* the test has already failed with some different reason.
If that's the case, then this relates to
https://bugs.openjdk.org/browse/JDK-8286744. I believe, setting up the
/etc/sudoers.d/sudoers file on your system for the /sbin/dmesg command
should get you past this. I suspect, this needs to be documented in the
build/testing documentation (or we need to somehow skip this command) -
I'll raise a JBS issue for this.
-Jaikiran
On 19/07/22 7:41 pm, Andrew Haley wrote:
> test/jdk/java/nio/channels/DatagramChannel/AdaptorMulticasting.java
> fails with
> a timeout because it asks for a password on the console. I guess this
> is some
> sort of security thing on MacOS.
>
> Maybe it'd work if I ran the test as root.
>
> Is this expected? Should the test be excluded? Or is there something I
> can do
> to make it work?
>
> Thanks,
>
More information about the jdk-dev
mailing list