Reduce depth in unit-test to avoid choking valgrind
This commit is contained in:
parent
eec1974218
commit
68d0a7b246
1 changed files with 3 additions and 3 deletions
|
@ -1780,10 +1780,10 @@ TEST_CASE("regression tests")
|
|||
|
||||
SECTION("issue #1419 - Segmentation fault (stack overflow) due to unbounded recursion")
|
||||
{
|
||||
const int depth = 8000000;
|
||||
const auto depth = 5000000;
|
||||
|
||||
std::string s(depth, '[');
|
||||
s += std::string(depth, ']');
|
||||
std::string s(2 * depth, '[');
|
||||
std::fill(s.begin() + depth, s.end(), ']');
|
||||
|
||||
CHECK_NOTHROW(nlohmann::json::parse(s));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue