summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-12-18 09:59:06 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-12-18 10:33:18 +0100
commitba1d1522d35a7dd2595603ead57cd0fa8b21ba8b (patch)
tree5ed31403888cc8d733db3810c2d09b7238e22d7b /test/ruby
parente8064c6c2c317be78953b4d19226368580af0dca (diff)
Make the SHAPE_TOO_COMPLEX performance warning more actionable
As suggested by Mame, we should try to help users fix the issues without having to lookup the meaning of the warning.
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_object.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index acc913b9c0..0bb9e633a1 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -458,7 +458,7 @@ class TestObject < Test::Unit::TestCase
end
def test_max_shape_variation_with_performance_warnings
- assert_in_out_err([], <<-INPUT, %w(), /Maximum shapes variations \(8\) reached by Foo, instance variables accesses will be slower\.$/)
+ assert_in_out_err([], <<-INPUT, %w(), /The class Foo reached 8 shape variations, instance variables accesses will be slower and memory usage increased/)
$VERBOSE = false
Warning[:performance] = true