1
0
forked from aniani/vim

patch 8.2.4670: memory allocation failures for new tab page not tested

Problem:    Memory allocation failures for new tab page not tested.
Solution:   Add tests with failing memory allocation. (Yegappan Lakshmanan,
            closes #10067)
This commit is contained in:
Yegappan Lakshmanan
2022-04-03 11:22:38 +01:00
committed by Bram Moolenaar
parent 58f331a05f
commit 72bb47e38f
9 changed files with 131 additions and 18 deletions

View File

@@ -22,7 +22,7 @@
blob_T *
blob_alloc(void)
{
blob_T *blob = ALLOC_CLEAR_ONE(blob_T);
blob_T *blob = ALLOC_CLEAR_ONE_ID(blob_T, aid_blob_alloc);
if (blob != NULL)
ga_init2(&blob->bv_ga, 1, 100);