From 02c599f52b8817916405b4263da3616a55f77632 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 8 Feb 2017 01:18:11 -0800 Subject: tests: Increase the number of translate calls This should make the test fail on a 32-bit target. --- tests/test_xpath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp index 417440b..69513fc 100644 --- a/tests/test_xpath.cpp +++ b/tests/test_xpath.cpp @@ -525,9 +525,9 @@ TEST_XML(xpath_memory_translate_table, "a") { test_runner::_memory_fail_threshold = 32768 + 4096 + 128; - // 128b per table => we need 32 translate calls to exhaust a page + // 128b per table => we need 32+ translate calls to exhaust a page std::basic_string query = STR("concat("); - for (int i = 0; i < 32; ++i) + for (int i = 0; i < 64; ++i) query += STR("translate(.,'a','A'),"); query += STR("'')"); -- cgit v1.2.3