+ assert (eager_alloc == false);
+ assert (prealloc_psize == 0);
+ assert (prealloc_npools == 0);
+ assert (min_free == 5);
+ }
+ parse("pre_alloc:min_free=30");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 0);
+ assert (prealloc_npools == 0);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=1");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 1 * 1024 * 1024);
+ assert (prealloc_npools == 1);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=5a:min_free=101");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 1 * 1024 * 1024);
+ assert (prealloc_npools == 1);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=5x:min_free=-1");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 1 * 1024 * 1024);
+ assert (prealloc_npools == 1);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=09x010:min_free=10a");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 9 * 1024 * 1024);
+ assert (prealloc_npools == 10);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=5x2:min_free=1.0");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 5 * 1024 * 1024);
+ assert (prealloc_npools == 2);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=9x5x:min_free=-1");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 5 * 1024 * 1024);
+ assert (prealloc_npools == 2);
+ assert (min_free == 30);
+ }
+ parse("pre_alloc=9x-5:min_free=0");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 5 * 1024 * 1024);
+ assert (prealloc_npools == 2);
+ assert (min_free == 0);
+ }
+ parse("pre_alloc=0x3x0x4:min_free=100");
+ with (options) {
+ assert (verbose == 1);
+ assert (cstring.strcmp(log_file.ptr, "12345 67890".ptr) == 0);
+ assert (sentinel == true);
+ assert (mem_stomp == true);
+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 5 * 1024 * 1024);
+ assert (prealloc_npools == 2);
+ assert (min_free == 100);