harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2453) [luni] Environment provides inconsistent map on Windows
Date Tue, 05 Dec 2006 10:06:21 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2453?page=comments#action_12455564 ] 
            
Alexey Varlamov commented on HARMONY-2453:
------------------------------------------

Added printf()  as:
  while(*lpszVars){
      fprintf(stderr, "Next var=%s\n", lpszVars);
      len += strlen(lpszVars)+1;
      lpszVars += strlen(lpszVars)+1;
  }
It gave the following log, see 4 weird vars in the beginning:

   [junit] Next var==::=::\
   [junit] Next var==C:=C:\.usr\varlax\harmony\trunk\working_vm\build
   [junit] Next var==ExitCode=00000000
   [junit] Next var==G:=G:\avarlamo\harmony
   [junit] Next var=ALLUSERSPROFILE=C:\Documents and Settings\All Users
   [junit] Next var=ANT_CMD_LINE_ARGS=-f make/build.xml -Djava.debug.option on -DBUILD_CFG
debug kernel.test -Dtest.case java.lang.SystemTest
   [junit] Next var=ANT_COMMAND=C:\apache-ant-1.6.5\bin\ant.bat
   [junit] Next var=ANT_HOME=C:\apache-ant-1.6.5
...

> [luni] Environment provides inconsistent map on Windows
> -------------------------------------------------------
>
>                 Key: HARMONY-2453
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2453
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: WinXP, Win2003 Server
>            Reporter: Alexey Varlamov
>
> 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:&lt;G:=G:\avarlamo\harmony\2commit&gt;
but was:&lt;null&gt;
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at java.lang.SystemTest.testGetenv(SystemTest.java:49)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message