diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-29 09:32:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-29 09:32:57 +0000 |
commit | 1e22638295252a4037f0a9af13e7c010d5d76db2 (patch) | |
tree | c971d416861c857ff6a7e87a528c6117ace435f7 /test/ruby | |
parent | ec943ac6687461bae53501970212780bc3ec4f8b (diff) |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 8070d57bd0..6611b92bb8 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -557,6 +557,15 @@ class TestFileExhaustive < Test::Unit::TestCase 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 assert_equal(1, File.unlink(regular_file)) make_file("foo", regular_file) |