JDK-8172988 : gradle :web:test should run in headless mode
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-01-18
  • Updated: 2017-01-19
  • Resolved: 2017-01-19
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
9Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
There is existing build logic in the ":web" project to run the tests in headless mode. This logic was inadvertently commented out during the upgrade to building with a Jigsaw boot JDK as part of JDK-8161704.

This is causing three problems:

1. We are unable to run our smoke tests on Linux without a valid DISPLAY

2. When running our smoke tests on Mac it sometimes can hang if system has no display; also it can steal the focus when running on your desktop.

3. It is causing the newly added unit test for JDK-8162922 to fail on Hi-DPI screens.

The first two problems were the reason we started running the web tests in headless mode in the first place (see JDK-8094088).
Comments
Changeset: 34574df2e46e Author: kcr Date: 2017-01-19 07:49 -0800 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/34574df2e46e 8172988: gradle :web:test should run in headless mode Reviewed-by: ddhill
19-01-2017

+1
18-01-2017

The fix is to simply uncomment the build logic and remove the now-obsolete "if" test: diff --git a/build.gradle b/build.gradle --- a/build.gradle +++ b/build.gradle @@ -2991,15 +2991,10 @@ } test { - /* - if (!IS_JIGSAW_TEST) { - //TODO: support this in Jake // Run web tests in headless mode systemProperty 'glass.platform', 'Monocle' systemProperty 'monocle.platform', 'Headless' systemProperty 'prism.order', 'sw' - } - */ dependsOn webArchiveJar def testResourceDir = file("$buildDir/testing/resources") jvmArgs "-DWEB_ARCHIVE_JAR_TEST_DIR=$testResourceDir"
18-01-2017