1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00
emacs/mps/test/function/231.c
Richard Brooksby d4e54ba17e Backing out the introduction of mps_arena_configure. see <https://info.ravenbrook.com/mail/2016/01/15/11-56-45/0>.
Copied from Perforce
 Change: 189081
 ServerID: perforce.ravenbrook.com
2016-02-03 15:52:05 +00:00

40 lines
769 B
C

/*
TEST_HEADER
id = $Id$
summary = create/configure arena with too-small commit limit
language = c
link = testlib.o
OUTPUT_SPEC
create1 = COMMIT_LIMIT
create2 = OK
configure = FAIL
END_HEADER
*/
#include "testlib.h"
#include "newfmt.h"
static void test(void)
{
mps_arena_t arena;
MPS_ARGS_BEGIN(args) {
MPS_ARGS_ADD(args, MPS_KEY_COMMIT_LIMIT, 16 * 1024);
report_res("create1",
mps_arena_create_k(&arena, mps_arena_class_vm(), args));
} MPS_ARGS_END(args);
report_res("create2",
mps_arena_create_k(&arena, mps_arena_class_vm(), mps_args_none));
report_res("configure", mps_arena_commit_limit_set(arena, 16 * 1024));
mps_arena_destroy(arena);
}
int main(void)
{
easy_tramp(test);
pass();
return 0;
}