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:
parent
f5c616f034
commit
5e9648be88
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue