mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-26 12:41:06 +08:00
tests: Increase the number of translate calls
This should make the test fail on a 32-bit target.
This commit is contained in:
parent
4bab082a27
commit
e748f435e5
@ -525,9 +525,9 @@ TEST_XML(xpath_memory_translate_table, "<node>a</node>")
|
||||
{
|
||||
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<char_t> query = STR("concat(");
|
||||
for (int i = 0; i < 32; ++i)
|
||||
for (int i = 0; i < 64; ++i)
|
||||
query += STR("translate(.,'a','A'),");
|
||||
query += STR("'')");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user