Skip to content

Commit 9fcb7d2

Browse files
committed
test: adjust xpath gc test to libxml2's max recursion depth
See upstream libxml2 commit 6f1470a where the recursion limit is hardcoded to 5000 stack frames.
1 parent 1c99019 commit 9fcb7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/xml/test_xpath.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def name_equals(nodeset, name, *args)
340340
# long list of long arguments, to apply GC pressure during
341341
# ruby_funcall argument marshalling
342342
xpath = ["//tool[name_equals(.,'hammer'"]
343-
1000.times { xpath << "'unused argument #{'x' * 1000}'" }
343+
500.times { xpath << "'unused argument #{'x' * 1000}'" }
344344
xpath << "'unused argument')]"
345345
xpath = xpath.join(',')
346346

0 commit comments

Comments
 (0)