mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +02:00
r53689 test
* test/ruby/test_file_exhaustive.rb (test_readlink_junction): test for r53689. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec943ac668
commit
1e22638295
1 changed files with 9 additions and 0 deletions
|
@ -557,6 +557,15 @@ class TestFileExhaustive < Test::Unit::TestCase
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if NTFS
|
||||||
|
def test_readlink_junction
|
||||||
|
base = File.basename(nofile)
|
||||||
|
err = IO.popen(%W"cmd.exe /c mklink /j #{base} .", chdir: @dir, err: %i[child out], &:read)
|
||||||
|
skip err unless $?.success?
|
||||||
|
assert_equal(@dir, File.readlink(nofile))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_unlink
|
def test_unlink
|
||||||
assert_equal(1, File.unlink(regular_file))
|
assert_equal(1, File.unlink(regular_file))
|
||||||
make_file("foo", regular_file)
|
make_file("foo", regular_file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue