f06c482b6f
Resolves: rhbz#1980885
25 lines
996 B
Diff
25 lines
996 B
Diff
From f9d72bb67bf81d0d3712134cd4ccea8a3d5a033d Mon Sep 17 00:00:00 2001
|
|
From: Mike Dalessio <mike.dalessio@gmail.com>
|
|
Date: Thu, 13 May 2021 22:41:44 -0400
|
|
Subject: [PATCH] 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.
|
|
---
|
|
test/xml/test_xpath.rb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/xml/test_xpath.rb b/test/xml/test_xpath.rb
|
|
index 271412a70..fe22646ba 100644
|
|
--- a/test/xml/test_xpath.rb
|
|
+++ b/test/xml/test_xpath.rb
|
|
@@ -337,7 +337,7 @@ def name_equals(nodeset, name, *args)
|
|
# long list of long arguments, to apply GC pressure during
|
|
# ruby_funcall argument marshalling
|
|
xpath = ["//tool[name_equals(.,'hammer'"]
|
|
- 1000.times { xpath << "'unused argument #{'x' * 1000}'" }
|
|
+ 500.times { xpath << "'unused argument #{'x' * 1000}'" }
|
|
xpath << "'unused argument')]"
|
|
xpath = xpath.join(',')
|
|
|