summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-15 01:52:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-15 01:52:00 +0000
commit23f371fd194197f2e88253207f84d9b002efb574 (patch)
tree860c09a379dc776e340781c519810742eebe50d2 /test/lib
parent5c5b2505a1104cfbb1eb13577245f2eb4f66d47f (diff)
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
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/envutil.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index 3b3c6337cd..826fd72380 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -426,9 +426,9 @@ eom
# 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