summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorYO4 <ysno@ac.auone-net.jp>2025-10-03 22:04:13 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-12-24 10:59:56 +0900
commitceea8060e4cc94846b2ff32fe8b0bb39049eda2e (patch)
treef6131487c0b1291581d3f5b0ba3261acd8a019cc /tool
parent688c1f6c5e96dfa3e4f6b16c617545ded7c8c0b4 (diff)
Properly handle test cases terminated by signals in test-bundled-gems
Process::Status#exitstatus turn into nil when child process is signeled. When exit_code was unchanged, test-bundled-gems.rb returned 0 and make was unable to detect the failure. Fix this.
Diffstat (limited to 'tool')
-rw-r--r--tool/test-bundled-gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index 006ebd981a..98b6bb9048 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -133,7 +133,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
puts colorize.decorate(mesg, "skip")
else
failed << gem
- exit_code = $?.exitstatus if $?.exitstatus
+ exit_code = 1
end
end
end