diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_file.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index b9c2210bdf..b0a6971e69 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -231,6 +231,14 @@ class TestFile < Test::Unit::TestCase assert_equal(realdir, File.realdirpath(".", tst)) assert_equal(File.join(realdir, "foo"), File.realdirpath("foo", tst)) } + begin + result = File.realdirpath("bar", "//:/foo") + rescue SystemCallError + else + if result.start_with?("//") + assert_equal("//:/foo/bar", result) + end + end end def test_utime_with_minus_time_segv |