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:
parent
035a4e7d72
commit
d863be7cb6
@ -1694,7 +1694,7 @@ class TestIO < Test::Unit::TestCase
|
|||||||
open(t.path) { |f|
|
open(t.path) { |f|
|
||||||
assert_equal("foo\n", f.gets)
|
assert_equal("foo\n", f.gets)
|
||||||
f.seek(0, IO::SEEK_DATA)
|
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|
|
open(t.path, 'r+') { |f|
|
||||||
pos = f.pos
|
pos = f.pos
|
||||||
@ -1740,7 +1740,7 @@ class TestIO < Test::Unit::TestCase
|
|||||||
open(t.path) { |f|
|
open(t.path) { |f|
|
||||||
assert_equal("foo\n", f.gets)
|
assert_equal("foo\n", f.gets)
|
||||||
f.seek(0, :DATA)
|
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|
|
open(t.path, 'r+') { |f|
|
||||||
pos = f.pos
|
pos = f.pos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user