test_require.rb: shared drive
* test/ruby/test_require.rb (TestRequire#test_require_with_unc): cannot test unless the local drive is shared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5c616f034
commit
5e9648be88
@ -104,7 +104,13 @@ class TestRequire < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_require_with_unc
|
def test_require_with_unc
|
||||||
assert(system(File.expand_path(EnvUtil.rubybin).sub(/\A(\w):/, '//127.0.0.1/\1$/'), "-rabbrev", "-e0"))
|
ruby = File.expand_path(EnvUtil.rubybin).sub(/\A(\w):/, '//127.0.0.1/\1$/')
|
||||||
|
skip "local drive #$1: is not shared" unless File.exist?(ruby)
|
||||||
|
pid = nil
|
||||||
|
assert_nothing_raised {pid = spawn(ruby, "-rabbrev", "-e0")}
|
||||||
|
ret, status = Process.wait2(pid)
|
||||||
|
assert_equal(pid, ret)
|
||||||
|
assert_predicate(status, :success?)
|
||||||
end if /mswin|mingw/ =~ RUBY_PLATFORM
|
end if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||||
|
|
||||||
def test_require_twice
|
def test_require_twice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user