diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-12-26 14:57:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-12-26 15:01:44 +0900 |
commit | 5df711844586312891bb466dbc72265490488d94 (patch) | |
tree | 715db3dd2c6bc522f39706fd63619d81955bd6f8 /spec/ruby/spec_helper.rb | |
parent | 509da028c2249cd386190f2856e91549cc9e6c23 (diff) |
Skip insanely memory consuming tests
These tests do not only consume hundreds GiB bytes memory, result in
`rb_bug` when `RUBY_DEBUG` is enabled.
Diffstat (limited to 'spec/ruby/spec_helper.rb')
-rw-r--r-- | spec/ruby/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/spec_helper.rb b/spec/ruby/spec_helper.rb index 3404521c03..527ed4e3a2 100644 --- a/spec/ruby/spec_helper.rb +++ b/spec/ruby/spec_helper.rb @@ -14,6 +14,10 @@ else end end +unless GC::INTERNAL_CONSTANTS[:RB_BUG_INSTEAD_OF_RB_MEMERROR] + MSpec.enable_feature :no_memory_error +end + unless ENV['MSPEC_RUNNER'] # Running directly with ruby some_spec.rb mspec_lib = File.expand_path("../../mspec/lib", __FILE__) $LOAD_PATH << mspec_lib if File.directory?(mspec_lib) |