diff --git a/ChangeLog b/ChangeLog index f2abfb6e9f..42eda79a09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 17 00:31:30 2009 Yukihiro Matsumoto + + * test/ruby/test_argf.rb (TestArgf#test_skip): updated test + according to clarified behavior. + Tue Jun 16 22:47:37 2009 Yukihiro Matsumoto * io.c (fptr_finalize): revert last change. [ruby-dev:38648] diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index 9e18a80b40..a6c224ba41 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -658,16 +658,12 @@ class TestArgf < Test::Unit::TestCase def test_skip ruby('-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f| - begin - ARGF.skip - rescue - puts "cannot skip" # ??? - end + ARGF.skip puts ARGF.gets ARGF.skip puts ARGF.read SRC - assert_equal("cannot skip\n1\n3\n4\n5\n6\n", f.read) + assert_equal("1\n3\n4\n5\n6\n", f.read) end end