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

ruby-changes:27874

From: nobu <ko1@a...>
Date: Mon, 25 Mar 2013 18:05:36 +0900 (JST)
Subject: [ruby-changes:27874] nobu:r39926 (trunk): envutil.rb: separate checks

nobu	2013-03-25 18:03:51 +0900 (Mon, 25 Mar 2013)

  New Revision: 39926

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

  Log:
    envutil.rb: separate checks
    
    * test/ruby/envutil.rb (assert_ruby_status): separate abort check and
      exit status check.

  Modified files:
    trunk/test/ruby/envutil.rb

Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 39925)
+++ test/ruby/envutil.rb	(revision 39926)
@@ -269,8 +269,9 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L269
 
       def assert_ruby_status(args, test_stdin="", message=nil, opt={})
         out, _, status = EnvUtil.invoke_ruby(args, test_stdin, true, :merge_to_stdout, opt)
+        assert(!status.signaled?, FailDesc[status, message, out])
         message ||= "ruby exit status is not success:"
-        assert(status.success?, FailDesc[status, "#{message} (#{status.inspect})", out])
+        assert(status.success?, "#{message} (#{status.inspect})")
       end
 
       ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV")

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

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