+ assert (conservative == true);
+ assert (fork == false);
+ assert (eager_alloc == false);
+ assert (prealloc_psize == 0);
+ assert (prealloc_npools == 0);
+ }
+ parse("pre_alloc");
+ 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);
+ }
+ 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);
+ }
+ parse("pre_alloc=5a");
+ 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);
+ }
+ parse("pre_alloc=5x");
+ 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);
+ }
+ parse("pre_alloc=09x010");
+ 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);
+ }
+ parse("pre_alloc=5x2");
+ 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);
+ }
+ parse("pre_alloc=9x5x");
+ 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);
+ }
+ parse("pre_alloc=9x-5");
+ 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);
+ }
+ parse("pre_alloc=0x3x0x4");
+ 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);