JDK-8158468 : tools/jlink/plugins/IncludeLocalesPluginTest.java doesn't detect test failures
Type:Bug
Component:tools
Sub-Component:jlink
Priority:P3
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2016-06-02
Updated:2016-06-24
Resolved:2016-06-17
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.
Exceptions thrown in a child process are ignored and any test failures are not detected by the parent test program.
Comments
There are several problems on this test.
- A child process doesn't inherit IO. So, any outputs from the child process are not logged.
- The exit code of a child process is ignored. The exit code needs to be checked by the test.
- A child process should use the exit code to report errors rather than throwing a RuntimeException.
- The golden data doesn't match the CLDR V29.
- It may not be a good idea to hard-code the full set of the available locales (before cooked).