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

ruby-changes:31611

From: nobu <ko1@a...>
Date: Sat, 16 Nov 2013 05:54:21 +0900 (JST)
Subject: [ruby-changes:31611] nobu:r43690 (trunk): test_beginendblock.rb: assert_normal_exit

nobu	2013-11-16 05:54:16 +0900 (Sat, 16 Nov 2013)

  New Revision: 43690

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

  Log:
    test_beginendblock.rb: assert_normal_exit
    
    * test/ruby/test_beginendblock.rb (test_callcc_at_exit): use
      assert_normal_exit for better message.

  Modified files:
    trunk/test/ruby/test_beginendblock.rb
Index: test/ruby/test_beginendblock.rb
===================================================================
--- test/ruby/test_beginendblock.rb	(revision 43689)
+++ test/ruby/test_beginendblock.rb	(revision 43690)
@@ -176,13 +176,12 @@ EOW https://github.com/ruby/ruby/blob/trunk/test/ruby/test_beginendblock.rb#L176
 
   def test_callcc_at_exit
     bug9110 = '[ruby-core:58329][Bug #9110]'
-    ruby = EnvUtil.rubybin
     script = <<EOS
 require "continuation"
 c = nil
 at_exit { c.call }
 at_exit { callcc {|_c| c = _c } }
 EOS
-    assert system(ruby, "-e", script)
+    assert_normal_exit(script, bug9110)
   end
 end

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

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