[PATCH v2 12/45] test: Support testing malloc() failures