diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_process.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 0e417f0fef..3d20d6eff5 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2841,7 +2841,10 @@ EOS def test_low_memory_startup omit "JIT enabled" if %w[YJIT RJIT].any? {|n| RubyVM.const_defined?(n) and RubyVM.const_get(n).enabled?} - (25..27).each {|i| as = 1<<i; assert_normal_exit("", "AS: %x" % as, rlimit_as: as)} + as = 1<<25 + _, _, status = EnvUtil.invoke_ruby(%W'-W0', "", true, :merge_to_stdout, rlimit_as: as) + omit sprintf("Crashed with AS: %#x: %s", as, status) if status.signaled? + (26..27).each {|i| as = 1<<i; assert_normal_exit("", "AS: %#x" % as, rlimit_as: as)} rescue ArgumentError, Errno::EINVAL => e omit e.message end |
