JDK-7145435 : TEST_BUG: Tests should be runnable in headless mode
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 7u4,8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,os_x
  • CPU: generic,x86
  • Submitted: 2012-02-14
  • Updated: 2012-08-24
  • Resolved: 2012-08-24
Related Reports
Duplicate :  
Duplicate :  
Description
Currently it's not possible to run the non-client tests without having the DISPLAY variable set. If it's not set then the following tests currently fail in jdk8/tl:

closed/java/sql/SQLPermission/SetLogStream.java
closed/java/sql/SQLPermission/SetLogWriter.java
closed/javax/management/security/ClientNotifForwarderTest.java
closed/sun/misc/Launcher/GrantedSunPackageAccess.java
demo/jvmti/mtrace/TraceJFrame.java
java/io/File/isDirectory/Applet.java
java/io/Serializable/resolveClass/deserializeButton/run.sh

This bug is submitted to re-examine these tests so that they won't require a display. This would make the tests more reliable in JPRT too as periodically the X11 locks up causing these tests to fail.

Comments
EVALUATION We may need to split this bug into separate bugs to cover the tests in different areas.
17-02-2012