]> granicus.if.org Git - gc/commit
Improve disclaim_bench and disclaim_test
authorIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jan 2012 04:44:11 +0000 (08:44 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jan 2012 09:06:59 +0000 (13:06 +0400)
commiteed89a623b65d6223e5240ba6444e7c7d71799be
tree203bed7ca9df7c1edba440799a12034c554642ab
parent37d422f55431849eb2abd5ac53539755a7ea2c76
Improve disclaim_bench and disclaim_test

* tests/disclaim_bench.c: Do not include assert.h.
* tests/disclaim_test.c: Likewise.
* tests/disclaim_bench.c (my_assert): New macro.
* tests/disclaim_test.c: Likewise.
* tests/disclaim_bench.c (testobj_finalize, testobj_new): Replace
assert with my_assert.
* tests/disclaim_test.c (misc_sizes_dct, test_misc_sizes, pair_dct,
pair_new, pair_check_rec): Likewise.
* tests/disclaim_test.c (misc_sizes_dct): Test "cd" value (at least to
prevent "unused argument" compiler warning).
* tests/disclaim_test.c (test_misc_sizes): Use ANSI C style of
function declaration.
* tests/disclaim_bench.c (fclos): Add 'const' qualifier (since
GC_finalized_malloc now accepts const pointer).
* tests/disclaim_test.c (test_misc_sizes, pair_new): Likewise.
* tests/disclaim_test.c (test_misc_sizes, pair_new): Test
GC_finalized_malloc result for NULL.
tests/disclaim_bench.c
tests/disclaim_test.c