1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2013-02-06 02:17:23 +00:00
parent f5c616f034
commit 5e9648be88

View file

@ -104,7 +104,13 @@ class TestRequire < Test::Unit::TestCase
end
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
def test_require_twice