show what filesystem it is on failure

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-04-22 10:37:01 +00:00
parent 035a4e7d72
commit d863be7cb6

View File

@ -1694,7 +1694,7 @@ class TestIO < Test::Unit::TestCase
open(t.path) { |f|
assert_equal("foo\n", f.gets)
f.seek(0, IO::SEEK_DATA)
assert_equal("foo\nbar\nbaz\n", f.read)
assert_equal("foo\nbar\nbaz\n", f.read, "cannot SEEK_DATA at fs(#{f.statfs.type})")
}
open(t.path, 'r+') { |f|
pos = f.pos
@ -1740,7 +1740,7 @@ class TestIO < Test::Unit::TestCase
open(t.path) { |f|
assert_equal("foo\n", f.gets)
f.seek(0, :DATA)
assert_equal("foo\nbar\nbaz\n", f.read)
assert_equal("foo\nbar\nbaz\n", f.read, "cannot SEEK_DATA at fs(#{f.statfs.type})")
}
open(t.path, 'r+') { |f|
pos = f.pos