mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_require.rb (test_relative_symlink): skip if symlink is not
implemented. * test/ruby/test_file_exhaustive.rb (test_stat, test_expand_path): ignore tests about nlink on Windows because its not imeplented because of performance problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
576252ae9d
commit
fd328d8ea1
2 changed files with 17 additions and 7 deletions
|
@ -290,9 +290,13 @@ class TestRequire < Test::Unit::TestCase
|
|||
File.open("a/lib.rb", "w") {|f| f.puts 'puts "a/lib.rb"' }
|
||||
File.open("b/lib.rb", "w") {|f| f.puts 'puts "b/lib.rb"' }
|
||||
File.open("a/tst.rb", "w") {|f| f.puts 'require_relative "lib"' }
|
||||
File.symlink("../a/tst.rb", "b/tst.rb")
|
||||
result = IO.popen([EnvUtil.rubybin, "b/tst.rb"]).read
|
||||
assert_equal("a/lib.rb\n", result, "[ruby-dev:40040]")
|
||||
begin
|
||||
File.symlink("../a/tst.rb", "b/tst.rb")
|
||||
result = IO.popen([EnvUtil.rubybin, "b/tst.rb"]).read
|
||||
assert_equal("a/lib.rb\n", result, "[ruby-dev:40040]")
|
||||
rescue NotImplementedError
|
||||
skip "File.symlink is not implemented"
|
||||
end
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue