From f87ca3ffb4caab94da3f9a5732083a35c240c315 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 13 Jun 2015 11:46:38 +0000 Subject: * file.c (rb_stat_ino): get inode from the interval of struct st. * win32/win32.c (stati64_set_inode): get nFilIndexHigh/Low, and set it to the interval of struct st as inode. * win32/win32.c (stati64_set_inode_handle): call stati64_set_inode. * win32/win32.c (rb_w32_fstati64): call stati64_set_inode_handle. * win32/win32.c (stati64_handle): call stati64_set_inode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index c4fed73f48..a700527a4e 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -342,6 +342,10 @@ class TestFile < Test::Unit::TestCase rescue NotImplementedError end + def test_stat_inode + assert_not_equal 0, File.stat(__FILE__).ino + end + def test_chmod_m17n bug5671 = '[ruby-dev:44898]' Dir.mktmpdir('test-file-chmod-m17n-') do |tmpdir| -- cgit v1.2.3