RFR: 8331605: jdk/test/lib/TestMutuallyExclusivePlatformPredicates.java test failure
Alexander Zvegintsev
azvegint at openjdk.org
Thu May 2 21:34:57 UTC 2024
On Thu, 2 May 2024 21:19:14 GMT, Phil Race <prr at openjdk.org> wrote:
> I see you added test.lib.Platform.isOnWayland() in this PR https://github.com/openjdk/jdk/pull/18995/files#diff-a1fe81399728999601f16ae9aaf5caae27f009c394377d2cd86c71f6d5e0e54c
>
> So, that helps me understand why it is a new problem, but I still don't understand why the failing test cares.
The test was introduced by [JDK-8058846](https://bugs.openjdk.org/browse/JDK-8058846). Its title is self-explanatory "c.o.j.t.Platform::isX86 and isX64 may simultaneously return true"
So methods that should not be true at the same time are placed in different groups, or in ignored group.
https://github.com/openjdk/jdk/blob/master/test/lib-test/jdk/test/lib/TestMutuallyExclusivePlatformPredicates.java#L48-L52
The test also checks if there is a new method that is not in any of these groups, hence the failure
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19071#issuecomment-2091738433
More information about the core-libs-dev
mailing list