]> granicus.if.org Git - gc/commit
tests: Add missing checks of GC_malloc result (for out-of-memory)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 30 Sep 2011 12:17:31 +0000 (16:17 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 30 Sep 2011 12:18:37 +0000 (16:18 +0400)
commit016fa329ce07d0ca55523be0dbe4241275483caf
treeaa9c5a1399fb9f65b00d7d7ae3566946d5510074
parentb0e50c95c8f23e2cb8e0c315fa6a17dbcbd17aab
tests: Add missing checks of GC_malloc result (for out-of-memory)

* tests/test.c (mktree): Insert CHECK_OUT_OF_MEMORY to report mktree()
out-of-memory failures.
* tests/trace_test.c (mktree): Test whether GC_MALLOC_ATOMIC returns
NULL (exit with an error code and the appropriate message printed in
this case).
tests/test.c
tests/trace_test.c