Test failures on FreeBSD
------------------------
Key: JRUBY-3441
URL: http://jira.codehaus.org/browse/JRUBY-3441
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Reporter: Charles Oliver Nutter
The majority of these are probably bad tests, but it would be nice to get them
cleaned up:
{noformat}
[junit] Testcase:
externals/ruby_test/test/core/File/class/tc_blockdev(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running
test/externals/ruby_test/test/core/File/class/tc_blockdev, complete output
follows:
[junit] Error:
[junit] test_blockdev(TC_File_Block_ClassMethod):
[junit] TypeError: can't convert nil into String
[junit] test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:51:in
`test_blockdev'
[junit] Failure:
[junit] test_blockdev_basic(TC_File_Block_ClassMethod)
[test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:44]:
[junit] Exception raised:
[junit] Class: <TypeError>
[junit] Message: <"can't convert nil into String">
[junit] ---Backtrace---
[junit] test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:44:in
`test_blockdev_basic'
[junit] test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:44:in
`test_blockdev_basic'
[junit] ---------------
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test/externals/ruby_test/test/core/File/class/tc_blockdev, complete output
follows:
[junit] Error:
[junit] test_blockdev(TC_File_Block_ClassMethod):
[junit] TypeError: can't convert nil into String
[junit] test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:51:in
`test_blockdev'
[junit] Failure:
[junit] test_blockdev_basic(TC_File_Block_ClassMethod)
[test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:44]:
[junit] Exception raised:
[junit] Class: <TypeError>
[junit] Message: <"can't convert nil into String">
[junit] ---Backtrace---
[junit] test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:44:in
`test_blockdev_basic'
[junit] test/externals/ruby_test/test/core/File/class/tc_blockdev.rb:44:in
`test_blockdev_basic'
[junit] ---------------
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
[junit]
[junit]
[junit] Testcase:
externals/ruby_test/test/core/File/class/tc_ftype(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running
test/externals/ruby_test/test/core/File/class/tc_ftype, complete output follows:
[junit] Error:
[junit] test_ftype_block(TC_File_Ftype_ClassMethod):
[junit] TypeError: can't convert nil into String
[junit] test/externals/ruby_test/test/core/File/class/tc_ftype.rb:75:in
`test_ftype_block'
[junit] Error:
[junit] test_ftype_link(TC_File_Ftype_ClassMethod):
[junit] TypeError: can't convert nil into String
[junit] test/externals/ruby_test/test/core/File/class/tc_ftype.rb:79:in
`test_ftype_link'
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test/externals/ruby_test/test/core/File/class/tc_ftype, complete output follows:
[junit] Error:
[junit] test_ftype_block(TC_File_Ftype_ClassMethod):
[junit] TypeError: can't convert nil into String
[junit] test/externals/ruby_test/test/core/File/class/tc_ftype.rb:75:in
`test_ftype_block'
[junit] Error:
[junit] test_ftype_link(TC_File_Ftype_ClassMethod):
[junit] TypeError: can't convert nil into String
[junit] test/externals/ruby_test/test/core/File/class/tc_ftype.rb:79:in
`test_ftype_link'
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
[junit]
[junit]
[junit] Testcase:
externals/ruby_test/test/core/FileStat/instance/tc_rdev(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running
test/externals/ruby_test/test/core/FileStat/instance/tc_rdev, complete output
follows:
[junit] Failure:
[junit] test_rdev(TC_FileStat_Rdev_InstanceMethod)
[test/externals/ruby_test/test/core/FileStat/instance/tc_rdev.rb:23]:
[junit] <true> expected but was
[junit] <false>.
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test/externals/ruby_test/test/core/FileStat/instance/tc_rdev, complete output
follows:
[junit] Failure:
[junit] test_rdev(TC_FileStat_Rdev_InstanceMethod)
[test/externals/ruby_test/test/core/FileStat/instance/tc_rdev.rb:23]:
[junit] <true> expected but was
[junit] <false>.
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
[junit]
[junit]
[junit] Testcase:
externals/ruby_test/test/core/FileStat/instance/tc_rdev_minor(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running
test/externals/ruby_test/test/core/FileStat/instance/tc_rdev_minor, complete
output follows:
[junit] Failure:
[junit] test_rdev_minor(TC_FileStat_RdevMinor_Instance)
[test/externals/ruby_test/test/core/FileStat/instance/tc_rdev_minor.rb:30]:
[junit] <0> expected but was
[junit] <573286>.
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test/externals/ruby_test/test/core/FileStat/instance/tc_rdev_minor, complete
output follows:
[junit] Failure:
[junit] test_rdev_minor(TC_FileStat_RdevMinor_Instance)
[test/externals/ruby_test/test/core/FileStat/instance/tc_rdev_minor.rb:30]:
[junit] <0> expected but was
[junit] <573286>.
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
[junit]
[junit]
[junit] Testcase:
externals/ruby_test/test/core/Module/instance/tc_included_modules(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running
test/externals/ruby_test/test/core/Module/instance/tc_included_modules,
complete output follows:
[junit] Failure:
[junit] test_included_modules(TC_Module_IncludeModules_InstanceMethod)
[test/externals/ruby_test/test/core/Module/instance/tc_included_modules.rb:29]:
[junit] <[IncludedMod_B, IncludedMod_A, Config, Kernel]> expected but was
[junit] <[IncludedMod_B, IncludedMod_A, PP::ObjectMixin, Config, Kernel]>.
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test/externals/ruby_test/test/core/Module/instance/tc_included_modules,
complete output follows:
[junit] Failure:
[junit] test_included_modules(TC_Module_IncludeModules_InstanceMethod)
[test/externals/ruby_test/test/core/Module/instance/tc_included_modules.rb:29]:
[junit] <[IncludedMod_B, IncludedMod_A, Config, Kernel]> expected but was
[junit] <[IncludedMod_B, IncludedMod_A, PP::ObjectMixin, Config, Kernel]>.
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
[junit]
[junit]
[junit] Testcase:
externals/ruby_test/test/core/Process/class/tc_constants(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running
test/externals/ruby_test/test/core/Process/class/tc_constants, complete output
follows:
[junit] Error:
[junit] test_rlimit_constants(TC_Process_Constants):
[junit] NameError: uninitialized constant Process::RLIMIT_SBSIZE
[junit]
test/externals/ruby_test/test/core/Process/class/tc_constants.rb:58:in
`test_rlimit_constants'
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test/externals/ruby_test/test/core/Process/class/tc_constants, complete output
follows:
[junit] Error:
[junit] test_rlimit_constants(TC_Process_Constants):
[junit] NameError: uninitialized constant Process::RLIMIT_SBSIZE
[junit]
test/externals/ruby_test/test/core/Process/class/tc_constants.rb:58:in
`test_rlimit_constants'
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:210)
{noformat}
The file-type tests are probably just using bad files for freebsd and need to
be modified. The rlimit test probably is looking for a constant that doesn't
exist on FreeBSD. And I suspect that test_included_modules fails because the
error printing for a test pulls in 'pp' or something.
--
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