JDK-8081022 : java/time/test/java/time/format/TestZoneTextPrinterParser.java fails by timeout on slow device
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.time
  • Affected Version: 8u60
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: arm
  • Submitted: 2015-05-25
  • Updated: 2016-06-13
  • Resolved: 2015-05-27
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 8 JDK 9
8u60Fixed 9 b67Fixed
Description
The test run over 1 hour and failed.

The test should be revised or split for several tests. Probably Random generator affects execution duration.

After I've replaced Random by constant test passed after 18 minutes:

ACTION: testng -- Passed. Execution successful
REASON: Assumed action based on file name: run testng test.java.time.format.TestZoneTextPrinterParser
TIME:   1109.355 seconds

Comments
The test should be updated to print the random seed to improve reproducability. The running time of the test can be reduced by running only 8 separate times instead of 50. Since the times are a product of the random numbers; issue with specific days or times will be caught on some run of the tests.
27-05-2015

Test passed on re-run. Execution time: 8804 seconds.
26-05-2015