Make test for allocation failure handling fail more gracefully

This commit is contained in:
Max Brunsfeld 2016-03-10 11:36:26 -08:00
parent 4f726da881
commit 240355b04c

View file

@ -490,6 +490,7 @@ describe("Parser", [&]() {
assert_root_node(expected_node_string);
ts_document_free(doc);
doc = nullptr;
AssertThat(record_alloc::outstanding_allocation_indices(), IsEmpty());
for (size_t i = 0; i < allocation_count; i++) {