summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-28 09:08:15 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-28 09:08:15 +0000
commit559d689ca6518bac42d241a2420a51439901d731 (patch)
treea1f3d75fc2adcedd37cf1691869e020317d0d5e2 /test
parent1782a16e8824bb986e36a7a2412ed50977ccd01f (diff)
* configure.in: check struct statvfs and struct statvfs.f_fstypename.
* configure.in: on NetBSD fstatfs is obsoleted. * file.c: support NetBSD for File::Statfs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 7410652537..8906e15ad0 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -389,7 +389,10 @@ class TestFile < Test::Unit::TestCase
open(__FILE__) do |f|
st = f.statfs
assert_kind_of File::Statfs, st
- assert_kind_of Integer, st.type
+ 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