ruby-changes:27033
From: nobu <ko1@a...>
Date: Wed, 6 Feb 2013 11:38:49 +0900 (JST)
Subject: [ruby-changes:27033] nobu:r39085 (trunk): test_require.rb: shared drive
nobu 2013-02-06 11:17:23 +0900 (Wed, 06 Feb 2013) New Revision: 39085 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39085 Log: test_require.rb: shared drive * test/ruby/test_require.rb (TestRequire#test_require_with_unc): cannot test unless the local drive is shared. Modified files: trunk/test/ruby/test_require.rb Index: test/ruby/test_require.rb =================================================================== --- test/ruby/test_require.rb (revision 39084) +++ test/ruby/test_require.rb (revision 39085) @@ -104,7 +104,13 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L104 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/