FileUtils#mkdir_p causes test suites to not register if the mkdir_p argument
already exists
-------------------------------------------------------------------------------------------
Key: JRUBY-1446
URL: http://jira.codehaus.org/browse/JRUBY-1446
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: JDK 1.5.0_07, 32-bit Intel OS X 10.4.10, JRuby trunk as
of 10/16/07
Reporter: Evan Weaver
FileUtils#mkdir_p causes test suites to not register if the mkdir_p
argument already exists. Easily worked around but seems like a bug.
Here's a minimal example:
require 'test/unit'
require 'fileutils'
FileUtils.mkdir_p "some_dir"
class TrueTest < Test::Unit::TestCase
def test_true; assert true; end
end
It works as long as "some_dir" doesn't already exist, mkdir_p is not
called, or mkdir_p is called from within a TrueTest instance method
rather than at load time.
--
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