tc_ftype.rb tests are a mess!
-----------------------------

                 Key: JRUBY-3562
                 URL: http://jira.codehaus.org/browse/JRUBY-3562
             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


Sorry for the strongly worded summary but I really don't know what the logic 
was here. It checks that /dev/fd0 exists. It does on my system and it is indeed 
a block device so that part is okay. But then it checks whether it's a symbolic 
link, which it isn't, so @link gets set to nil. Subsequently the 
test_ftype_link test errors because it tries to do File.ftype(nil). It even 
sets @link to nil explicitly if none of the files exist. How is that supposed 
to work?

I suggest you create a symbolic link in some foolproof way such as using ln in 
backquotes. I don't think you can reliably create a block device so easily so 
you'll have to skip any tests that require @block if one isn't found.

-- 
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