1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Avoid test failure in function/120: can't provoke resresource so easily.

Copied from Perforce
 Change: 182234
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2013-05-25 20:18:07 +01:00
parent 271a76dc83
commit 7e6182cfd7

View file

@ -12,7 +12,7 @@ OUTPUT_SPEC
alloc_mv = COMMIT_LIMIT
commit_ext = OK
alloc_16 = OK
alloc_big = RESOURCE
alloc_big = COMMIT_LIMIT
poolcr = COMMIT_LIMIT
result = pass
END_HEADER
@ -83,8 +83,9 @@ static void test(void) {
report_res("alloc_16", mps_alloc(&a, pool, (size_t) (1024*16)));
/* a really big allocation should fail on the arena's address arena size,
not the commit limit */
/* We'd like to get MPS_RES_RESOURCE by running out of the arena's
address arena size, not the commit limit, but that's hard to
arrange on 64-bit machines. See job001152. */
report_res("alloc_big", mps_alloc(&a, pool, (size_t) (1024*1024*30)));