You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2006/11/22 22:03:02 UTC
[jira] Created: (HARMONY-2271) [drlvm][kernel.tests] Kernel test
SystemTest fails on win32 when there is an empty environment variable set
[drlvm][kernel.tests] Kernel test SystemTest fails on win32 when there is an empty environment variable set
-----------------------------------------------------------------------------------------------------------
Key: HARMONY-2271
URL: http://issues.apache.org/jira/browse/HARMONY-2271
Project: Harmony
Issue Type: Bug
Components: DRLVM
Reporter: Gregory Shimansky
Assigned To: Gregory Shimansky
Today I've found that on one win32 server I have SystemTest (subtest testGetenv) failing. It threw an assertion error that expected value for environment variable PRINTER should be "" (empty string), but instead System.getenv returned null, as if this variable was not set at all. On this machine PRINTER variable indeed had an empty value.
I've debugged the failure down to APR and found out that it is really treating empty variables (length 0) as if they just don't exist, and returned NULL for them. Googling a bit gave me a pointer to the fix in APR - http://svn.apache.org/viewvc?view=rev&revision=471877
Unfortunately this fix didn't make it to any APR release yet, so the patch contains a patch-fix for APR which we currently use replacing env.c with a new version from APR svn.
--
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
[jira] Updated: (HARMONY-2271) [drlvm][kernel.tests] Kernel test
SystemTest fails on win32 when there is an empty environment variable set
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2271?page=all ]
Gregory Shimansky updated HARMONY-2271:
---------------------------------------
Attachment: harmony-2271.patch
Patch with new version of env.c
> [drlvm][kernel.tests] Kernel test SystemTest fails on win32 when there is an empty environment variable set
> -----------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2271
> URL: http://issues.apache.org/jira/browse/HARMONY-2271
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Gregory Shimansky
> Assigned To: Gregory Shimansky
> Attachments: harmony-2271.patch
>
>
> Today I've found that on one win32 server I have SystemTest (subtest testGetenv) failing. It threw an assertion error that expected value for environment variable PRINTER should be "" (empty string), but instead System.getenv returned null, as if this variable was not set at all. On this machine PRINTER variable indeed had an empty value.
> I've debugged the failure down to APR and found out that it is really treating empty variables (length 0) as if they just don't exist, and returned NULL for them. Googling a bit gave me a pointer to the fix in APR - http://svn.apache.org/viewvc?view=rev&revision=471877
> Unfortunately this fix didn't make it to any APR release yet, so the patch contains a patch-fix for APR which we currently use replacing env.c with a new version from APR svn.
--
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
[jira] Closed: (HARMONY-2271) [drlvm][kernel.tests] Kernel test
SystemTest fails on win32 when there is an empty environment variable set
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2271?page=all ]
Gregory Shimansky closed HARMONY-2271.
--------------------------------------
Resolution: Fixed
Patch applied at 478330.
> [drlvm][kernel.tests] Kernel test SystemTest fails on win32 when there is an empty environment variable set
> -----------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2271
> URL: http://issues.apache.org/jira/browse/HARMONY-2271
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Gregory Shimansky
> Assigned To: Gregory Shimansky
> Attachments: harmony-2271.patch
>
>
> Today I've found that on one win32 server I have SystemTest (subtest testGetenv) failing. It threw an assertion error that expected value for environment variable PRINTER should be "" (empty string), but instead System.getenv returned null, as if this variable was not set at all. On this machine PRINTER variable indeed had an empty value.
> I've debugged the failure down to APR and found out that it is really treating empty variables (length 0) as if they just don't exist, and returned NULL for them. Googling a bit gave me a pointer to the fix in APR - http://svn.apache.org/viewvc?view=rev&revision=471877
> Unfortunately this fix didn't make it to any APR release yet, so the patch contains a patch-fix for APR which we currently use replacing env.c with a new version from APR svn.
--
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