JDK-8066862 : TestMutuallyExclusivePlatformPredicates fails on all platforms
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-12-08
  • Updated: 2017-08-07
  • Resolved: 2014-12-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b45Fixed
Related Reports
Relates :  
Comments
Review: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2014-December/016575.html
10-12-2014

Issue: testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java fails with RuntimeException: All Platform's methods with signature '():Z' should be tested Root cause: Fix for 8039995 added new methods with "():Z" signature, but these methods were not marked in TestMutuallyExclusivePlatformPredicates as methods that should be ignored. Proposed fix: Mark newly added methods as ignored in TestMutuallyExclusivePlatformPredicates.java, add this test to sanity test group in order to run it in JPRT
10-12-2014

In order to prevent issues caused by the fact that some mutually exclusive predicates may return "true" on on the same platform (for example if isARM and isPPC will return true simultaneously) I decided to check in test if all Platform's methods with '():Z' signature were tested. Fix for 8039995 added new methods with such signature, but these methods were not marked in TestMutuallyExclusivePlatformPredicates as methods that should be ignored. To avoid this particular failure these methods could be added to test.
08-12-2014