tc_expand_path.rb tests wrongly assume that ~user == $HOME
----------------------------------------------------------

                 Key: JRUBY-3561
                 URL: http://jira.codehaus.org/browse/JRUBY-3561
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.2
         Environment: Gentoo Linux, IcedTea6 1.4
            Reporter: James Le Cuirot
            Priority: Minor


I'm the unofficial maintainer for JRuby on Gentoo. For the first time, I've 
been able to get more than just the first few tests to actually pass but 
there's still one that fails and I don't think it's our fault. The tests in 
tc_expand_path.rb, specifically test_expand_path_with_tilde and 
test_expand_path_with_tilde_and_dir, wrongly assume that ~user == $HOME. You 
would probably expect that to be the case so even I was surprised. Try this in 
your shell as root.

symphony ~ # HOME="/tmp" sh -c "echo ~"
/tmp
symphony ~ # HOME="/tmp" sh -c "echo ~root"
/root

JRuby itself seems to be doing the right thing. It's just the tests that are 
wrong.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to