diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-26 14:57:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-26 15:01:44 +0900 |
commit | 5df711844586312891bb466dbc72265490488d94 (patch) | |
tree | 715db3dd2c6bc522f39706fd63619d81955bd6f8 /spec/ruby/core | |
parent | 509da028c2249cd386190f2856e91549cc9e6c23 (diff) | |
download | ruby-5df711844586312891bb466dbc72265490488d94.tar.gz |
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/core')
-rw-r--r-- | spec/ruby/core/integer/left_shift_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/integer/right_shift_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/integer/left_shift_spec.rb b/spec/ruby/core/integer/left_shift_spec.rb index 6774e1f3e1..9e57631a1c 100644 --- a/spec/ruby/core/integer/left_shift_spec.rb +++ b/spec/ruby/core/integer/left_shift_spec.rb @@ -191,7 +191,7 @@ describe "Integer#<< (with n << m)" do (0 << bignum_value).should == 0 end - ruby_bug "#18518", ""..."3.4" do + with_feature(:no_memory_error, :infinite_memory) do it "raises NoMemoryError when m > 0 and n != 0" do coerce_long = mock("long") coerce_long.stub!(:to_int).and_return(2**40) diff --git a/spec/ruby/core/integer/right_shift_spec.rb b/spec/ruby/core/integer/right_shift_spec.rb index 3fef09a30a..37246456df 100644 --- a/spec/ruby/core/integer/right_shift_spec.rb +++ b/spec/ruby/core/integer/right_shift_spec.rb @@ -213,7 +213,7 @@ describe "Integer#>> (with n >> m)" do (0 >> -bignum_value).should == 0 end - ruby_bug "#18518", ""..."3.4" do + with_feature(:no_memory_error, :infinite_memory) do it "raises NoMemoryError when m < 0 and n != 0" do coerce_long = mock("long") coerce_long.stub!(:to_int).and_return(-(2**40)) |