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

ruby-changes:38825

From: nobu <ko1@a...>
Date: Mon, 15 Jun 2015 10:52:18 +0900 (JST)
Subject: [ruby-changes:38825] nobu:r50906 (trunk): envutil.rb: show failure description

nobu	2015-06-15 10:52:00 +0900 (Mon, 15 Jun 2015)

  New Revision: 50906

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

  Log:
    envutil.rb: show failure description
    
    * test/lib/envutil.rb (assert_separately): always show failure
      description.  signals are not available on Windows.

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 50905)
+++ test/lib/envutil.rb	(revision 50906)
@@ -426,9 +426,9 @@ eom https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L426
         # really is it succeed?
         unless ignore_stderr
           # the body of assert_separately must not output anything to detect error
-          assert_equal("", stderr, "assert_separately failed with error message")
+          assert(stderr.empty?, FailDesc[status, "assert_separately failed with error message", stderr])
         end
-        assert_equal(0, status, "assert_separately failed: '#{stderr}'")
+        assert(status.success?, FailDesc[status, "assert_separately failed", stderr])
         raise marshal_error if marshal_error
       end
 

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

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