diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_dir.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index b0d848c83f..3f2acb22fc 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -249,6 +249,12 @@ class TestDir < Test::Unit::TestCase end end + def test_glob_super_root + bug9648 = '[ruby-core:61552] [Bug #9648]' + roots = Dir.glob("/*") + assert_equal(roots.map {|n| "/..#{n}"}, Dir.glob("/../*"), bug9648) + end + def test_home env_home = ENV["HOME"] env_logdir = ENV["LOGDIR"] |
