summaryrefslogtreecommitdiff
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-09 16:29:50 +0900
committerJeremy Evans <code@jeremyevans.net>2021-07-01 18:49:17 -0700
commit8ebb5e23ebc5f1675e3479b9a29f124dc458226b (patch)
treec751532653c9b626b875733079471eabd17b5012 /test/ruby/test_thread.rb
parent1862d961a9b18acbf30d9391e091d91de9c0f16d (diff)
Keep GC disabled until VM bootstrap has done [Bug #17583]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4617
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index a75d42b962..19a3529005 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -1146,7 +1146,9 @@ q.pop
env = {}
env['RUBY_THREAD_VM_STACK_SIZE'] = vm_stack_size.to_s if vm_stack_size
env['RUBY_THREAD_MACHINE_STACK_SIZE'] = machine_stack_size.to_s if machine_stack_size
- out, = EnvUtil.invoke_ruby([env, '-e', script], '', true, true)
+ out, err, status = EnvUtil.invoke_ruby([env, '-e', script], '', true, true)
+ assert_not_predicate(status, :signaled?, err)
+
use_length ? out.length : out
end