[前][次][番号順一覧][スレッド一覧]

ruby-changes:33581

From: naruse <ko1@a...>
Date: Tue, 22 Apr 2014 19:37:05 +0900 (JST)
Subject: [ruby-changes:33581] naruse:r45662 (trunk): show what filesystem it is on failure

naruse	2014-04-22 19:37:01 +0900 (Tue, 22 Apr 2014)

  New Revision: 45662

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45662

  Log:
    show what filesystem it is on failure

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 45661)
+++ test/ruby/test_io.rb	(revision 45662)
@@ -1694,7 +1694,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1694
         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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1740
         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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]