summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-22 05:20:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-22 05:20:59 +0000
commit75f398a6dfa78501c3c0ee9cef00f35901fd6541 (patch)
tree288ace077a824320f20afa54e0bbe03863b4f0e2 /test/ruby/test_array.rb
parent333a8d305c98f9e9c43ed2cf1e4bc01b6372701f (diff)
downloadruby-75f398a6dfa78501c3c0ee9cef00f35901fd6541.tar.gz
ruby-75f398a6dfa78501c3c0ee9cef00f35901fd6541.tar.xz
ruby-75f398a6dfa78501c3c0ee9cef00f35901fd6541.zip
* array.c (flatten): check if reentered. [ruby-dev:34798]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r--test/ruby/test_array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 0cbeb435a..5618d1545 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -727,7 +727,7 @@ class TestArray < Test::Unit::TestCase
end
def test_flatten_with_callcc
- respond_to?(:callcc) or require 'continuation'
+ respond_to?(:callcc, true) or require 'continuation'
o = Object.new
def o.to_ary() callcc {|k| @cont = k; [1,2,3]} end
begin
@@ -1148,7 +1148,7 @@ class TestArray < Test::Unit::TestCase
end
def test_sort_with_callcc
- respond_to?(:callcc) or require 'continuation'
+ respond_to?(:callcc, true) or require 'continuation'
n = 1000
cont = nil
ary = (1..100).to_a