summaryrefslogtreecommitdiff
path: root/bootstraptest/test_objectspace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_objectspace.rb')
-rw-r--r--bootstraptest/test_objectspace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_objectspace.rb b/bootstraptest/test_objectspace.rb
index 4f93341f72..ca738f5d63 100644
--- a/bootstraptest/test_objectspace.rb
+++ b/bootstraptest/test_objectspace.rb
@@ -17,7 +17,7 @@ assert_normal_exit %q{
ary.permutation(2) {|x|
if x == [1,2]
ObjectSpace.each_object(String) {|s|
- s.clear if s.length == 40 || s.length == 80
+ s.clear if s.frozen? && (s.length == 40 || s.length == 80)
}
end
}