From 210f863906c34ad524007abb3b045d4b3cba98b1 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 22 May 2014 10:39:48 +0000 Subject: revert File::Statfs [Feature #9772] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file.rb | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'test/ruby/test_file.rb') diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 8906e15ad0..01992a83d4 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -383,31 +383,4 @@ class TestFile < Test::Unit::TestCase assert_file.not_exist?(path) end end - - def test_statfs - skip "not implemented" unless $stdout.respond_to?(:statfs) - open(__FILE__) do |f| - st = f.statfs - assert_kind_of File::Statfs, st - begin - assert_kind_of Integer, st.type - rescue NotImplementedError - end - assert_kind_of Integer, st.bsize - assert_kind_of Integer, st.blocks - assert_kind_of Integer, st.bfree - assert_kind_of Integer, st.bavail - assert_kind_of Integer, st.files - assert_kind_of Integer, st.ffree - begin - assert_kind_of String, st.fstypename - rescue NotImplementedError - end - s = st.inspect - assert_match(/\A\#\z/, s) - assert_match(/\bbsize=\d+\b/, s) - assert_match(/\bblocks=(?:\d+[,>\/])+\b/, s) - assert_match(/\bfiles=(?:\d+[,>\/])+\b/, s) - end - end end -- cgit v1.2.3