United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7162111 TEST_BUG: change tests run in headless mode [macosx]
JDK-7162111 : TEST_BUG: change tests run in headless mode [macosx]

Details
Type:
Bug
Submit Date:
2012-04-17
Status:
Resolved
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2012-11-26
Component:
other-libs
OS:
os_x,generic
Sub-Component:
other
CPU:
x86,unknown,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7,7u4,8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
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.
                                     
2012-10-30
The following test also fails on OS X because it depends on AWT:

java/security/Security/ClassLoaderDeadlock/ClassLoaderDeadlock.sh

Tst1 extends JFrame.
                                     
2012-10-30
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8970128e040d
User:  uta
Date:  2012-11-26 11:57:03 +0000

                                     
2012-11-26
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/8970128e040d
User:  lana
Date:  2012-12-11 19:52:58 +0000

                                     
2012-12-14



Hardware and Software, Engineered to Work Together