summaryrefslogtreecommitdiffhomepage
path: root/test/assert.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-03-13 22:04:14 +0900
committerKOBAYASHI Shuji <[email protected]>2019-03-13 22:04:14 +0900
commitc3122c887a7fb842aac78b4735a64004a9b71a20 (patch)
treebceb7adb985e9ee00aa04b6416da681214ad23c4 /test/assert.rb
parentad0a8888f3c7fb99304347760a746dcf64539f5e (diff)
downloadmruby-c3122c887a7fb842aac78b4735a64004a9b71a20.tar.gz
mruby-c3122c887a7fb842aac78b4735a64004a9b71a20.zip
Do not raise an exception when bintest fail
- An exception do not raise when mrbtest fail. - There are no useful informations in exception message and backtrace.
Diffstat (limited to 'test/assert.rb')
-rw-r--r--test/assert.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/assert.rb b/test/assert.rb
index 623ec9138..2873eece1 100644
--- a/test/assert.rb
+++ b/test/assert.rb
@@ -213,7 +213,7 @@ end
##
# Report the test result and print all assertions
# which were reported broken.
-def report()
+def report
t_print("\n")
$asserts.each do |msg|
@@ -232,6 +232,8 @@ def report()
t_time = Time.now - $test_start
t_print(" Time: #{t_time.round(2)} seconds\n")
end
+
+ $ko_test == 0 && $kill_test == 0
end
##