From 66ba3608ca50a0375e2fc7dac94b3d30c3d685f8 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Fri, 20 Sep 2024 18:43:56 +0300 Subject: [PATCH] Smaller limit under ASAN for autocomplete_subtyping_recursion_limit --- tests/Autocomplete.test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Autocomplete.test.cpp b/tests/Autocomplete.test.cpp index 2458bac2..bf97492e 100644 --- a/tests/Autocomplete.test.cpp +++ b/tests/Autocomplete.test.cpp @@ -3823,7 +3823,11 @@ TEST_CASE_FIXTURE(ACFixture, "autocomplete_subtyping_recursion_limit") ScopedFastFlag luauAutocompleteNewSolverLimit{FFlag::LuauAutocompleteNewSolverLimit, true}; ScopedFastInt luauTypeInferRecursionLimit{FInt::LuauTypeInferRecursionLimit, 10}; +#if defined(LUAU_ENABLE_ASAN) + const int parts = 50; +#else const int parts = 100; +#endif std::string source; source += "function f()\n";