1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

envutil.rb: show failure description

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-06-15 01:52:00 +00:00
parent 5c5b2505a1
commit 23f371fd19

View file

@ -426,9 +426,9 @@ eom
# really is it succeed? # really is it succeed?
unless ignore_stderr unless ignore_stderr
# the body of assert_separately must not output anything to detect error # 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 end
assert_equal(0, status, "assert_separately failed: '#{stderr}'") assert(status.success?, FailDesc[status, "assert_separately failed", stderr])
raise marshal_error if marshal_error raise marshal_error if marshal_error
end end