summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-07 11:09:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-07 11:09:19 +0900
commit3d21a75c72586baee75ab9b9c5335c755ee76793 (patch)
tree0ffe65aae52ef92de7b7e0d95bfe6de172f527af /tool
parent8c67080381166f97a1153f092f40df699d020a53 (diff)
No crafted backtrace for SystemExit
As SystemExit is ignored, it is just useless.
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/test/unit/core_assertions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb
index 836d712049..5b65eb9960 100644
--- a/tool/lib/test/unit/core_assertions.rb
+++ b/tool/lib/test/unit/core_assertions.rb
@@ -150,7 +150,7 @@ eom
ignore_stderr = nil
res = nil
end
- if res
+ if res and !(SystemExit === res)
if bt = res.backtrace
bt.each do |l|
l.sub!(/\A-:(\d+)/){"#{file}:#{line + $1.to_i}"}
@@ -159,7 +159,7 @@ eom
else
res.set_backtrace(caller)
end
- raise res unless SystemExit === res
+ raise res
end
# really is it succeed?