summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-22 05:18:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-22 05:18:52 +0000
commite6f67598e9466a5cb95fc0a8ed487b04c764f361 (patch)
treee8efa002ebd676485d221cd60042440a9c7c7549
parentdd6ab4f3d5ba92c57d999f0ab4cbcb8c401af3d6 (diff)
* bootstraptest/test_objectspace.rb: skip flozen string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--bootstraptest/test_objectspace.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3519748307..0431c120b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Dec 22 14:17:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_objectspace.rb: skip flozen string.
+
Sat Dec 22 14:02:58 2007 Koichi Sasada <ko1@atdot.net>
* array.c (rb_ary_permutation): add volatile to avoid GC problem.
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
}