ruby-changes:29603
From: shirosaki <ko1@a...>
Date: Wed, 26 Jun 2013 21:21:34 +0900 (JST)
Subject: [ruby-changes:29603] shirosaki:r41655 (trunk): * test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): skip if
shirosaki 2013-06-26 21:21:21 +0900 (Wed, 26 Jun 2013) New Revision: 41655 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41655 Log: * test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): skip if writing a file is slow. [ruby-core:55541] [Bug #8519] Modified files: trunk/ChangeLog trunk/test/ruby/test_io.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 41654) +++ ChangeLog (revision 41655) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jun 26 21:01:22 2013 Hiroshi Shirosaki <h.shirosaki@g...> + + * test/ruby/test_io.rb (TestIO#test_write_32bit_boundary): skip if + writing a file is slow. + [ruby-core:55541] [Bug #8519] + Wed Jun 26 16:42:11 2013 Nobuyoshi Nakada <nobu@r...> * lib/mkmf.rb: should use expanded values for header directories Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 41654) +++ test/ruby/test_io.rb (revision 41655) @@ -2661,22 +2661,26 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2661 ret end - assert_separately(["-", bug8431, t.path], <<-"end;", timeout: 30) - msg = ARGV.shift - f = open(ARGV[0], "wb") - f.seek(0xffff_ffff) - begin - # this will consume very long time or fail by ENOSPC on a - # filesystem which sparse file is not supported - f.write('1') - pos = f.tell - rescue Errno::ENOSPC - skip "non-sparse file system" - rescue SystemCallError - else - assert_equal(0x1_0000_0000, pos, msg) - end - end; + begin + assert_separately(["-", bug8431, t.path], <<-"end;", timeout: 30) + msg = ARGV.shift + f = open(ARGV[0], "wb") + f.seek(0xffff_ffff) + begin + # this will consume very long time or fail by ENOSPC on a + # filesystem which sparse file is not supported + f.write('1') + pos = f.tell + rescue Errno::ENOSPC + skip "non-sparse file system" + rescue SystemCallError + else + assert_equal(0x1_0000_0000, pos, msg) + end + end; + rescue Timeout::Error + skip "Timeout because of slow file writing" + end } end if /mswin|mingw/ =~ RUBY_PLATFORM end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/