Browse Source

Try to make RouteGen test use less memory and up the limit a bit

Caleb James DeLisle 3 years ago
parent
commit
dabaf52575
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tunnel/test/RouteGen_test.c

+ 3 - 1
tunnel/test/RouteGen_test.c

@@ -107,6 +107,8 @@ static void runTest(char** prefixes,
     struct Allocator* alloc = Allocator_child(allocator);
     Log_debug(log, "Forward");
     runTest0(prefixes, exceptions4, exceptions6, expectedOut4, expectedOut6, alloc, log);
+    Allocator_free(alloc);
+    alloc = Allocator_child(allocator);
     Log_debug(log, "Reverse");
     runTest0(prefixes, expectedOut4, expectedOut6, exceptions4, exceptions6, alloc, log);
     Allocator_free(alloc);
@@ -114,7 +116,7 @@ static void runTest(char** prefixes,
 
 int main()
 {
-    struct Allocator* alloc = MallocAllocator_new(1<<20);
+    struct Allocator* alloc = MallocAllocator_new(1<<21);
     struct Log* log = FileWriterLog_new(stdout, alloc);
 
     runTest((char*[]){ "0.0.0.0/0", NULL },