summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/query/streaming_query_large_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/query/streaming_query_large_test.cpp')
-rw-r--r--searchlib/src/tests/query/streaming_query_large_test.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/searchlib/src/tests/query/streaming_query_large_test.cpp b/searchlib/src/tests/query/streaming_query_large_test.cpp
index b39dad43a7b..13af3774e7d 100644
--- a/searchlib/src/tests/query/streaming_query_large_test.cpp
+++ b/searchlib/src/tests/query/streaming_query_large_test.cpp
@@ -29,15 +29,11 @@ namespace {
// a stack overflow if the stack usage increases.
TEST("testveryLongQueryResultingInBug6850778") {
uint32_t NUMITEMS=20000;
-#ifdef VESPA_USE_ADDRESS_SANITIZER
- setMaxStackSize(12_Mi);
-#else
-#ifdef VESPA_USE_THREAD_SANITIZER
+#if defined(VESPA_USE_THREAD_SANITIZER) || defined(VESPA_USE_ADDRESS_SANITIZER)
NUMITEMS = 10000;
#else
setMaxStackSize(4_Mi);
#endif
-#endif
QueryBuilder<SimpleQueryNodeTypes> builder;
for (uint32_t i=0; i <= NUMITEMS; i++) {
builder.addAnd(2);