diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-03-13 22:04:14 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-03-13 22:04:14 +0900 |
| commit | c3122c887a7fb842aac78b4735a64004a9b71a20 (patch) | |
| tree | bceb7adb985e9ee00aa04b6416da681214ad23c4 /test/assert.rb | |
| parent | ad0a8888f3c7fb99304347760a746dcf64539f5e (diff) | |
| download | mruby-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.rb | 4 |
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 ## |
