JDK-7127874 : Add handling of MacOSX env variables to ProcessBuilder regression test
Type:Bug
Component:core-libs
Sub-Component:java.lang
Affected Version:7u4
Priority:P4
Status:Closed
Resolution:Fixed
OS:os_x
CPU:unknown,x86
Submitted:2012-01-06
Updated:2012-09-24
Resolved:2012-03-28
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.
Mac OS X adds environment variables __CF_USER_TEXT_ENCODING and JAVA_MAIN_CLASS_<pid>. The tests in jdk/test/java/lang/ProcessBuilder/Basic.java do not handle these variables and fail. Add handling.
Comments
EVALUATION
Fixed by stripping __CF_USER_TEXT_ENCODING and JAVA_MAIN_CLASS_<pid> variables from the list of environment variables returned on Mac OS X.
Changeset: d0a56328cb69
Author: juh
Date: 2012-01-18 16:15 +0000
URL: http://hg.openjdk.java.net/jdk7u/jdk7u-osx/jdk/rev/d0a56328cb69
7127874: Add handling of MacOSX env variables to ProcessBuilder regression test
Reviewed-by: michaelm