You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Semukhina (JIRA)" <ji...@apache.org> on 2007/03/01 07:46:50 UTC
[jira] Updated: (HARMONY-2453) [luni] Environment provides
inconsistent map on Windows
[ https://issues.apache.org/jira/browse/HARMONY-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elena Semukhina updated HARMONY-2453:
-------------------------------------
Attachment: H-2453.patch
H-2453_remove_SystemTest_from_excluded.patch
It seems that there are some "hidden" variables on Windows which names start with "=".
For example, =C: is evidently set to the current dir, =ExitCode is also obvious. I have no guess what =:: could be but asking all these variables with System.getenv(String) returns the correct results:
System.getenv("=C:") returns C:\users\esemukhi\test\thread
I attached a patch fixing this issue. SystemTest failed on my machine because of =C: and =ExitCode presence and it now passes. I checked this fix on linux as well.
I also attached the patch to remove the test from excluded lists.
> [luni] Environment provides inconsistent map on Windows
> -------------------------------------------------------
>
> Key: HARMONY-2453
> URL: https://issues.apache.org/jira/browse/HARMONY-2453
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: WinXP, Win2003 Server
> Reporter: Alexey Varlamov
> Attachments: H-2453.patch, H-2453_remove_SystemTest_from_excluded.patch
>
>
> The following test fails often on WIndows:
> public void testGetenv() {
> Map<String, String> env = System.getenv();
> for (String key : env.keySet()) {
> assertEquals("Value of " + key, env.get(key), System.getenv(key));
> }
> }
> junit.framework.ComparisonFailure: Value of expected:<G:=G:\avarlamo\harmony\2commit> but was:<null>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at java.lang.SystemTest.testGetenv(SystemTest.java:49)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.