Lower the memory budget in TestCompile.InsufficientMemory.
Fixes #256.
Change-Id: I975c5f6f7a12dc86fedc0f3ab35f16295c18a7e8
Reviewed-on: https://code-review.googlesource.com/c/re2/+/56150
Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/testing/compile_test.cc b/re2/testing/compile_test.cc
index 4598aa6..2096e2f 100644
--- a/re2/testing/compile_test.cc
+++ b/re2/testing/compile_test.cc
@@ -236,7 +236,7 @@
"^(?P<name1>[^\\s]+)\\s+(?P<name2>[^\\s]+)\\s+(?P<name3>.+)$",
Regexp::LikePerl, NULL);
EXPECT_TRUE(re != NULL);
- Prog* prog = re->CompileToProg(920);
+ Prog* prog = re->CompileToProg(850);
// If the memory budget has been exhausted, compilation should fail
// and return NULL instead of trying to do anything with NoMatch().
EXPECT_TRUE(prog == NULL);