aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-28 08:01:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-28 08:01:48 +0000
commita38678a6e4f7420706e443cd8aebc6b4d7e22c1f (patch)
treea752ff7f3f9db17651a285c83a0583f05098d03f /test/ruby/test_file.rb
parent519b97e2dc7feff32ea5008fbd3d8f5c24bc5f9d (diff)
downloadruby-a38678a6e4f7420706e443cd8aebc6b4d7e22c1f.tar.gz
test_file.rb: fix name clash
* test/ruby/test_file.rb (test_realpath_encoding): get rid of name clash on case-insensitive filesystem in ascii only environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index ee6bfe77ea..3599d168d1 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -266,7 +266,7 @@ class TestFile < Test::Unit::TestCase
Dir.mktmpdir('rubytest-realpath') {|tmpdir|
realdir = File.realpath(tmpdir)
open(File.join(tmpdir, tst), "w") {}
- a = File.join(tmpdir, "a")
+ a = File.join(tmpdir, "x")
File.symlink(tst, a)
assert_equal(File.join(realdir, tst), File.realpath(a))
File.unlink(a)