JDK-7162111 : TEST_BUG: change tests run in headless mode [macosx]
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 7,7u4,8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,os_x
  • CPU: generic,unknown,x86
  • Submitted: 2012-04-17
  • Updated: 2014-03-20
  • Resolved: 2012-11-26
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 7 JDK 8
7Resolved 8 b68Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8003898 :  
Description
The following regression tests fail on Mac OS X in jprt (or any other remotely executed environment).

closed/java/lang/ClassLoader/CheckClassName.sh
closed/java/lang/SecurityManager/Default.java 
closed/javax/management/security/ClientNotifForwarderTest.java  
closed/sun/misc/Launcher/GrantedSunPackageAccess.java
closed/java/sql/SQLPermission/SetLogStream.java
closed/java/sql/SQLPermission/SetLogWriter.java
demo/jvmti/mtrace/TraceJFrame.java
java/io/Serializable/resolveClass/deserializeButton/run.sh
java/io/Serializable/serialver/classpath/run.sh
java/io/Serializable/serialver/nested/run.sh
java/util/ResourceBundle/Control/Bug6530694.java
javax/script/CauseExceptionTest.java
javax/script/GetInterfaceTest.java
javax/script/JavaScriptScopeTest.java
javax/script/NullUndefinedVarTest.java
javax/script/PluggableContextTest.java
javax/script/ProviderTest.sh
javax/script/RhinoExceptionTest.java
javax/script/StringWriterPrintTest.java
javax/script/Test1.java
javax/script/Test2.java
javax/script/Test3.java
javax/script/Test4.java
javax/script/Test5.java
javax/script/Test6.java
javax/script/Test7.java
javax/script/Test8.java
javax/script/UnescapedBracketRegExTest.java
javax/script/VersionTest.java
sun/tools/jrunscript/jrunscript-argsTest.sh
sun/tools/jrunscript/jrunscript-cpTest.sh
sun/tools/jrunscript/jrunscript-DTest.sh
sun/tools/jrunscript/jrunscript-eTest.sh
sun/tools/jrunscript/jrunscript-fTest.sh
sun/tools/jrunscript/jrunscriptTest.sh

For the moment then most (not all) are on the problem list, but longer term it would be better to make
them run in headless mode (on all platforms).

Comments
In jdk8, the test java/security/Security/ClassLoaderDeadlock/ClassLoaderDeadlock.sh was changed to use -Djava.awt.headless=true, this is why it doesn't fail with jdk8.
30-10-2012

The following test also fails on OS X because it depends on AWT: java/security/Security/ClassLoaderDeadlock/ClassLoaderDeadlock.sh Tst1 extends JFrame.
30-10-2012